Skip to content

Commit 18e0e87

Browse files
committed
Prevent props loading while processing operations
1 parent dde6182 commit 18e0e87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Files/ViewModels/ItemViewModel.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,8 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken)
18151815
if (await operationEvent.WaitAsync(200, cancellationToken))
18161816
{
18171817
operationEvent.Reset();
1818+
itemLoadEvent.Reset();
1819+
18181820
while (operationQueue.TryDequeue(out var operation))
18191821
{
18201822
if (cancellationToken.IsCancellationRequested) break;
@@ -1851,6 +1853,8 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken)
18511853
anyEdits = false;
18521854
}
18531855
}
1856+
1857+
itemLoadEvent.Set();
18541858
}
18551859

18561860
if (anyEdits && sampler.CheckNow())

0 commit comments

Comments
 (0)