mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Put UpdateResultsListViewAfterQuery calls logic with inside addResultLock blocks (#14078)
This commit is contained in:
@@ -574,11 +574,10 @@ namespace PowerLauncher.ViewModel
|
||||
Results.Sort();
|
||||
Results.SelectedItem = Results.Results.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
currentCancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
UpdateResultsListViewAfterQuery(queryText);
|
||||
}
|
||||
|
||||
// Run the slower query of the DelayedExecution plugins
|
||||
currentCancellationToken.ThrowIfCancellationRequested();
|
||||
@@ -611,12 +610,12 @@ namespace PowerLauncher.ViewModel
|
||||
numResults = Results.Results.Count;
|
||||
Results.Sort();
|
||||
}
|
||||
}
|
||||
|
||||
currentCancellationToken.ThrowIfCancellationRequested();
|
||||
UpdateResultsListViewAfterQuery(queryText, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
// nothing to do here
|
||||
|
||||
Reference in New Issue
Block a user