From 2405af88a696267b6593295c20633c8f594cf507 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sun, 4 Jul 2021 18:35:00 +0800 Subject: [PATCH] fix unexpected Task Status --- .../PluginsManager.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs index ebb76a838..ac40b53bc 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs +++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs @@ -59,11 +59,13 @@ namespace Flow.Launcher.Plugin.PluginsManager } else { - return _downloadManifestTask = pluginsManifest.DownloadManifest().ContinueWith(t => - Context.API.ShowMsg("Plugin Manifest Download Fail.", - "Please check if you can connect to github.com. " + - "This error means you may not be able to Install and Update Plugin.", icoPath, false), + _downloadManifestTask = pluginsManifest.DownloadManifest(); + _downloadManifestTask.ContinueWith(_ => + Context.API.ShowMsg("Plugin Manifest Download Fail.", + "Please check if you can connect to github.com. " + + "This error means you may not be able to Install and Update Plugin.", icoPath, false), TaskContinuationOptions.OnlyOnFaulted); + return _downloadManifestTask; } }