Skip to content

Commit e579722

Browse files
committed
Revert event renaming
1 parent 03ce94d commit e579722

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Files/ViewModels/ItemViewModel.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class ItemViewModel : ObservableObject, IDisposable
4747
private readonly SemaphoreSlim enumFolderSemaphore;
4848
private readonly ConcurrentQueue<(uint Action, string FileName)> operationQueue;
4949
private readonly ConcurrentDictionary<string, bool> itemLoadQueue;
50-
private readonly AsyncManualResetEvent operationEvent, loadPropsEvent;
50+
private readonly AsyncManualResetEvent operationEvent, itemLoadEvent;
5151
private IntPtr hWatchDir;
5252
private IAsyncAction aWatcherAction;
5353

@@ -351,7 +351,7 @@ public ItemViewModel(FolderSettingsViewModel folderSettingsViewModel)
351351
loadPropsCTS = new CancellationTokenSource();
352352
operationEvent = new AsyncManualResetEvent();
353353
enumFolderSemaphore = new SemaphoreSlim(1, 1);
354-
loadPropsEvent = new AsyncManualResetEvent();
354+
itemLoadEvent = new AsyncManualResetEvent();
355355
shouldDisplayFileExtensions = App.AppSettings.ShowFileExtensions;
356356

357357
AppServiceConnectionHelper.ConnectionChanged += AppServiceConnectionHelper_ConnectionChanged;
@@ -915,7 +915,7 @@ public async Task LoadExtendedItemProperties(ListedItem item, uint thumbnailSize
915915
{
916916
await Task.Run(async () =>
917917
{
918-
await loadPropsEvent.WaitAsync(cts.Token);
918+
await itemLoadEvent.WaitAsync(cts.Token);
919919

920920
if (itemLoadQueue.TryGetValue(item.ItemPath, out var canceled) && canceled)
921921
{
@@ -1130,7 +1130,7 @@ private async void RapidAddItemsToCollectionAsync(string path, string previousDi
11301130
return;
11311131
}
11321132

1133-
loadPropsEvent.Reset();
1133+
itemLoadEvent.Reset();
11341134

11351135
try
11361136
{
@@ -1188,7 +1188,7 @@ private async void RapidAddItemsToCollectionAsync(string path, string previousDi
11881188
{
11891189
DirectoryInfoUpdated?.Invoke(this, EventArgs.Empty); // Make sure item count is updated
11901190
enumFolderSemaphore.Release();
1191-
loadPropsEvent.Set();
1191+
itemLoadEvent.Set();
11921192
}
11931193

11941194
postLoadCallback?.Invoke();

0 commit comments

Comments
 (0)