Put UpdateResultsListViewAfterQuery calls logic with inside addResultLock blocks (#14078)

This commit is contained in:
Stefan Markovic
2021-11-01 17:16:57 +01:00
committed by GitHub
parent e62df46c61
commit a881e6b3d5

View File

@@ -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