return if cancellation requested before changing _isQueryRunning state

This commit is contained in:
张弘韬 2020-12-22 13:45:11 +08:00
parent b8d3b42295
commit 968931e4a0

View file

@ -474,6 +474,8 @@ namespace Flow.Launcher.ViewModel
// nothing to do here
}
if (currentCancellationToken.IsCancellationRequested)
return;
// this should happen once after all queries are done so progress bar should continue
// until the end of all querying