mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Remove all plugin results on query change (#5796)
This commit is contained in:
committed by
GitHub
parent
7d8931696d
commit
b2006f2466
@@ -222,7 +222,7 @@ namespace PowerLauncher.ViewModel
|
||||
/// <summary>
|
||||
/// Add new results to ResultCollection
|
||||
/// </summary>
|
||||
public void AddResults(List<Result> newRawResults, string resultId, CancellationToken ct)
|
||||
public void AddResults(List<Result> newRawResults, CancellationToken ct)
|
||||
{
|
||||
if (newRawResults == null)
|
||||
{
|
||||
@@ -236,7 +236,6 @@ namespace PowerLauncher.ViewModel
|
||||
ct.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
Results.RemoveAll(r => r.Result.PluginID == resultId);
|
||||
Results.AddRange(newResults);
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user