@@ -1063,6 +1063,9 @@ await Task.Run(async () =>
1063
1063
loadGroupHeaderInfo = gp is not null && ! gp . Model . Initialized && gp . GetExtendedGroupHeaderInfo is not null ;
1064
1064
}
1065
1065
1066
+ cts . Token . ThrowIfCancellationRequested ( ) ;
1067
+ await LoadItemThumbnailAsync ( item , thumbnailSize ) ;
1068
+
1066
1069
if ( item . IsLibrary || item . PrimaryItemAttribute == StorageItemTypes . File || item . IsArchive )
1067
1070
{
1068
1071
if ( ! item . IsShortcut && ! item . IsHiddenItem && ! FtpHelpers . IsFtpPath ( item . ItemPath ) )
@@ -1093,13 +1096,8 @@ await dispatcherQueue.EnqueueOrInvokeAsync(() =>
1093
1096
1094
1097
SetFileTag ( item ) ;
1095
1098
wasSyncStatusLoaded = true ;
1096
-
1097
- await LoadItemThumbnailAsync ( item , thumbnailSize ) ;
1098
1099
}
1099
1100
}
1100
-
1101
- if ( ! wasSyncStatusLoaded )
1102
- await LoadItemThumbnailAsync ( item , thumbnailSize ) ;
1103
1101
}
1104
1102
else
1105
1103
{
@@ -1109,8 +1107,6 @@ await dispatcherQueue.EnqueueOrInvokeAsync(() =>
1109
1107
BaseStorageFolder matchingStorageFolder = await GetFolderFromPathAsync ( item . ItemPath , cts . Token ) ;
1110
1108
if ( matchingStorageFolder is not null )
1111
1109
{
1112
- cts . Token . ThrowIfCancellationRequested ( ) ;
1113
- await LoadItemThumbnailAsync ( item , thumbnailSize ) ;
1114
1110
if ( matchingStorageFolder . DisplayName != item . Name && ! matchingStorageFolder . DisplayName . StartsWith ( "$R" , StringComparison . Ordinal ) )
1115
1111
{
1116
1112
cts . Token . ThrowIfCancellationRequested ( ) ;
@@ -1147,11 +1143,6 @@ await dispatcherQueue.EnqueueOrInvokeAsync(() =>
1147
1143
wasSyncStatusLoaded = true ;
1148
1144
}
1149
1145
}
1150
- if ( ! wasSyncStatusLoaded )
1151
- {
1152
- cts . Token . ThrowIfCancellationRequested ( ) ;
1153
- await LoadItemThumbnailAsync ( item , thumbnailSize ) ;
1154
- }
1155
1146
}
1156
1147
1157
1148
if ( loadGroupHeaderInfo && isFileTypeGroupMode )
0 commit comments