fix error message not working + increase delay

This commit is contained in:
Jeremy Wu 2021-01-19 08:52:12 +11:00
parent 485b314a65
commit 2463582af0

View file

@ -38,15 +38,15 @@ namespace Flow.Launcher.Plugin.PluginsManager
contextMenu = new ContextMenu(Context);
pluginManager = new PluginsManager(Context, Settings);
var updateManifestTask = pluginManager.UpdateManifest();
if (await Task.WhenAny(updateManifestTask, Task.Delay(500)) == updateManifestTask)
if (await Task.WhenAny(updateManifestTask, Task.Delay(1000)) == updateManifestTask)
{
lastUpdateTime = DateTime.Now;
}
else
{
context.API.ShowMsg("Plugin Manifest Download Fail.",
@"Please check internet transmission with Github.com.
You may not be able to Install and Update Plugin.", pluginManager.icoPath);
"Please check if you can connect to github.com. "+
"This error means you may not be able to Install and Update Plugin.", pluginManager.icoPath, false);
}
}