Skip to content

Commit 7ea0ab8

Browse files
committed
Prevent props loading while processing operations
1 parent dde6182 commit 7ea0ab8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Files/ViewModels/ItemViewModel.cs

+3
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,7 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken)
18151815
if (await operationEvent.WaitAsync(200, cancellationToken))
18161816
{
18171817
operationEvent.Reset();
1818+
itemLoadEvent.Reset();
18181819
while (operationQueue.TryDequeue(out var operation))
18191820
{
18201821
if (cancellationToken.IsCancellationRequested) break;
@@ -1851,6 +1852,8 @@ private async void ProcessOperationQueue(CancellationToken cancellationToken)
18511852
anyEdits = false;
18521853
}
18531854
}
1855+
1856+
itemLoadEvent.Set();
18541857
}
18551858

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

0 commit comments

Comments
 (0)