@@ -47,7 +47,7 @@ public class ItemViewModel : ObservableObject, IDisposable
47
47
private readonly SemaphoreSlim enumFolderSemaphore ;
48
48
private readonly ConcurrentQueue < ( uint Action , string FileName ) > operationQueue ;
49
49
private readonly ConcurrentDictionary < string , bool > itemLoadQueue ;
50
- private readonly AsyncManualResetEvent operationEvent , loadPropsEvent ;
50
+ private readonly AsyncManualResetEvent operationEvent , itemLoadEvent ;
51
51
private IntPtr hWatchDir ;
52
52
private IAsyncAction aWatcherAction ;
53
53
@@ -351,7 +351,7 @@ public ItemViewModel(FolderSettingsViewModel folderSettingsViewModel)
351
351
loadPropsCTS = new CancellationTokenSource ( ) ;
352
352
operationEvent = new AsyncManualResetEvent ( ) ;
353
353
enumFolderSemaphore = new SemaphoreSlim ( 1 , 1 ) ;
354
- loadPropsEvent = new AsyncManualResetEvent ( ) ;
354
+ itemLoadEvent = new AsyncManualResetEvent ( ) ;
355
355
shouldDisplayFileExtensions = App . AppSettings . ShowFileExtensions ;
356
356
357
357
AppServiceConnectionHelper . ConnectionChanged += AppServiceConnectionHelper_ConnectionChanged ;
@@ -915,7 +915,7 @@ public async Task LoadExtendedItemProperties(ListedItem item, uint thumbnailSize
915
915
{
916
916
await Task . Run ( async ( ) =>
917
917
{
918
- await loadPropsEvent . WaitAsync ( cts . Token ) ;
918
+ await itemLoadEvent . WaitAsync ( cts . Token ) ;
919
919
920
920
if ( itemLoadQueue . TryGetValue ( item . ItemPath , out var canceled ) && canceled )
921
921
{
@@ -1130,7 +1130,7 @@ private async void RapidAddItemsToCollectionAsync(string path, string previousDi
1130
1130
return ;
1131
1131
}
1132
1132
1133
- loadPropsEvent . Reset ( ) ;
1133
+ itemLoadEvent . Reset ( ) ;
1134
1134
1135
1135
try
1136
1136
{
@@ -1188,7 +1188,7 @@ private async void RapidAddItemsToCollectionAsync(string path, string previousDi
1188
1188
{
1189
1189
DirectoryInfoUpdated ? . Invoke ( this , EventArgs . Empty ) ; // Make sure item count is updated
1190
1190
enumFolderSemaphore . Release ( ) ;
1191
- loadPropsEvent . Set ( ) ;
1191
+ itemLoadEvent . Set ( ) ;
1192
1192
}
1193
1193
1194
1194
postLoadCallback ? . Invoke ( ) ;
0 commit comments