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,12 +574,11 @@ namespace PowerLauncher.ViewModel
|
|||||||
Results.Sort();
|
Results.Sort();
|
||||||
Results.SelectedItem = Results.Results.FirstOrDefault();
|
Results.SelectedItem = Results.Results.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentCancellationToken.ThrowIfCancellationRequested();
|
||||||
|
UpdateResultsListViewAfterQuery(queryText);
|
||||||
}
|
}
|
||||||
|
|
||||||
currentCancellationToken.ThrowIfCancellationRequested();
|
|
||||||
|
|
||||||
UpdateResultsListViewAfterQuery(queryText);
|
|
||||||
|
|
||||||
// Run the slower query of the DelayedExecution plugins
|
// Run the slower query of the DelayedExecution plugins
|
||||||
currentCancellationToken.ThrowIfCancellationRequested();
|
currentCancellationToken.ThrowIfCancellationRequested();
|
||||||
Parallel.ForEach(plugins, (plugin) =>
|
Parallel.ForEach(plugins, (plugin) =>
|
||||||
@@ -611,10 +610,10 @@ namespace PowerLauncher.ViewModel
|
|||||||
numResults = Results.Results.Count;
|
numResults = Results.Results.Count;
|
||||||
Results.Sort();
|
Results.Sort();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
currentCancellationToken.ThrowIfCancellationRequested();
|
currentCancellationToken.ThrowIfCancellationRequested();
|
||||||
UpdateResultsListViewAfterQuery(queryText, true);
|
UpdateResultsListViewAfterQuery(queryText, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
|
|||||||
Reference in New Issue
Block a user