mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use cancallationToken.IsCancellationRequested instead of comparing current token with global token
This commit is contained in:
parent
6326d6f3d5
commit
7be2a956dd
1 changed files with 2 additions and 1 deletions
|
|
@ -442,7 +442,8 @@ namespace Flow.Launcher.ViewModel
|
|||
async Task QueryTask(PluginPair plugin, Query query, CancellationToken token)
|
||||
{
|
||||
var results = await PluginManager.QueryForPlugin(plugin, query, token);
|
||||
UpdateResultView(results, plugin.Metadata, query);
|
||||
if (!currentCancellationToken.IsCancellationRequested)
|
||||
UpdateResultView(results, plugin.Metadata, query);
|
||||
}
|
||||
|
||||
}, currentCancellationToken).ContinueWith(t => Log.Exception("|MainViewModel|Plugins Query Exceptions", t.Exception),
|
||||
|
|
|
|||
Loading…
Reference in a new issue