mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix error message not working + increase delay
This commit is contained in:
parent
485b314a65
commit
2463582af0
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue