Skip to content

Commit c6ca824

Browse files
committed
Fix sometimes props not loading
1 parent e579722 commit c6ca824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Files/ViewModels/ItemViewModel.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,6 @@ public async Task LoadExtendedItemProperties(ListedItem item, uint thumbnailSize
906906
return;
907907
}
908908

909-
item.ItemPropertiesInitialized = true;
910909
itemLoadQueue[item.ItemPath] = false;
911910

912911
var cts = loadPropsCTS;
@@ -916,6 +915,7 @@ public async Task LoadExtendedItemProperties(ListedItem item, uint thumbnailSize
916915
await Task.Run(async () =>
917916
{
918917
await itemLoadEvent.WaitAsync(cts.Token);
918+
item.ItemPropertiesInitialized = true;
919919

920920
if (itemLoadQueue.TryGetValue(item.ItemPath, out var canceled) && canceled)
921921
{
@@ -1045,7 +1045,7 @@ await FilesystemTasks.Wrap(() => CoreApplication.MainView.DispatcherQueue.Enqueu
10451045
}
10461046
catch (OperationCanceledException)
10471047
{
1048-
item.ItemPropertiesInitialized = false;
1048+
// ignored
10491049
}
10501050
finally
10511051
{

0 commit comments

Comments
 (0)