From b2584bb01b8226a2992c0b4d36f8fae9683018a8 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Wed, 9 Oct 2019 06:18:09 +1100 Subject: [PATCH] Add hide query window before actual reload + show success msg --- Plugins/Wox.Plugin.Sys/Main.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plugins/Wox.Plugin.Sys/Main.cs b/Plugins/Wox.Plugin.Sys/Main.cs index 6186b3cacc..09039b880b 100644 --- a/Plugins/Wox.Plugin.Sys/Main.cs +++ b/Plugins/Wox.Plugin.Sys/Main.cs @@ -215,7 +215,11 @@ namespace Wox.Plugin.Sys IcoPath = "Images\\app.png", Action = c => { + // Hide the window first then show msg after done because sometimes the reload could take a while, so not to make user think it's frozen. + Application.Current.MainWindow.Hide(); context.API.ReloadAllPluginData(); + context.API.ShowMsg(context.API.GetTranslation("wox_plugin_sys_dlgtitle_success"), + context.API.GetTranslation("wox_plugin_sys_dlgtext_all_applicableplugins_reloaded")); return true; } }