Skip to content

Commit db66f9d

Browse files
authored
Fix: Fixed issue where pinned folder icons didn't load until restarting the app (#17704)
1 parent c45e5e4 commit db66f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Data/Models/PinnedFoldersManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ public async Task<LocationItem> CreateLocationItemFromPathAsync(string path)
104104
{
105105
locationItem.IsInvalid = false;
106106
if (res.Result is not null)
107-
_ = LoadIconForLocationItemAsync(locationItem, res.Result.Path);
107+
await LoadIconForLocationItemAsync(locationItem, res.Result.Path);
108108
}
109109
else
110110
{
111111
locationItem.IsInvalid = true;
112112
Debug.WriteLine($"Pinned item was invalid {res?.ErrorCode}, item: {path}");
113-
_ = LoadDefaultIconForLocationItemAsync(locationItem);
113+
await LoadDefaultIconForLocationItemAsync(locationItem);
114114
}
115115

116116
return locationItem;

0 commit comments

Comments
 (0)