Skip to content

Commit 2405af8

Browse files
committed
fix unexpected Task Status
1 parent d6ec4b5 commit 2405af8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ internal Task UpdateManifest()
5959
}
6060
else
6161
{
62-
return _downloadManifestTask = pluginsManifest.DownloadManifest().ContinueWith(t =>
63-
Context.API.ShowMsg("Plugin Manifest Download Fail.",
64-
"Please check if you can connect to github.com. " +
65-
"This error means you may not be able to Install and Update Plugin.", icoPath, false),
62+
_downloadManifestTask = pluginsManifest.DownloadManifest();
63+
_downloadManifestTask.ContinueWith(_ =>
64+
Context.API.ShowMsg("Plugin Manifest Download Fail.",
65+
"Please check if you can connect to github.com. " +
66+
"This error means you may not be able to Install and Update Plugin.", icoPath, false),
6667
TaskContinuationOptions.OnlyOnFaulted);
68+
return _downloadManifestTask;
6769
}
6870
}
6971

0 commit comments

Comments
 (0)