mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Optimize Logic
This commit is contained in:
parent
d203a7a5f3
commit
415adb72bf
1 changed files with 4 additions and 3 deletions
|
|
@ -279,15 +279,16 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
internal async ValueTask<List<Result>> RequestInstallOrUpdate(string searchName, CancellationToken token)
|
||||
{
|
||||
if (!pluginsManifest.UserPlugins.Any() &&
|
||||
_downloadManifestTask.IsCompleted ||
|
||||
_downloadManifestTask.IsFaulted)
|
||||
_downloadManifestTask.Status != TaskStatus.Running)
|
||||
{
|
||||
_downloadManifestTask = pluginsManifest.DownloadManifest();
|
||||
}
|
||||
|
||||
await _downloadManifestTask;
|
||||
|
||||
if (token.IsCancellationRequested)
|
||||
return null;
|
||||
|
||||
|
||||
var searchNameWithoutKeyword = searchName.Replace(Settings.HotKeyInstall, string.Empty).Trim();
|
||||
|
||||
var results =
|
||||
|
|
|
|||
Loading…
Reference in a new issue