mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Add hide query window before actual reload + show success msg
This commit is contained in:
@@ -215,7 +215,11 @@ namespace Wox.Plugin.Sys
|
|||||||
IcoPath = "Images\\app.png",
|
IcoPath = "Images\\app.png",
|
||||||
Action = c =>
|
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.ReloadAllPluginData();
|
||||||
|
context.API.ShowMsg(context.API.GetTranslation("wox_plugin_sys_dlgtitle_success"),
|
||||||
|
context.API.GetTranslation("wox_plugin_sys_dlgtext_all_applicableplugins_reloaded"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user