Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ internal List<Result> InstallFromWeb(string url)
return false;
}

Application.Current.MainWindow.Hide();
Context.API.HideMainWindow();
_ = InstallOrUpdateAsync(plugin);

return ShouldHideWindow;
Expand Down Expand Up @@ -572,7 +572,7 @@ internal List<Result> InstallFromLocalPath(string localPath)
return false;
}

Application.Current.MainWindow.Hide();
Context.API.HideMainWindow();
_ = InstallOrUpdateAsync(plugin);

return ShouldHideWindow;
Expand Down Expand Up @@ -626,7 +626,7 @@ internal async ValueTask<List<Result>> RequestInstallOrUpdateAsync(string search
return ShouldHideWindow;
}

Application.Current.MainWindow.Hide();
Context.API.HideMainWindow();
_ = InstallOrUpdateAsync(x); // No need to wait
return ShouldHideWindow;
},
Expand Down Expand Up @@ -703,7 +703,7 @@ internal List<Result> RequestUninstall(string search)
Context.API.GetTranslation("plugin_pluginsmanager_uninstall_title"),
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
Application.Current.MainWindow.Hide();
Context.API.HideMainWindow();
Uninstall(x.Metadata);
if (Settings.AutoRestartAfterChanging)
{
Expand Down
4 changes: 2 additions & 2 deletions Plugins/Flow.Launcher.Plugin.Sys/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ private List<Result> Commands()
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.HideMainWindow();

_ = context.API.ReloadAllPluginData().ContinueWith(_ =>
context.API.ShowMsg(
Expand All @@ -352,7 +352,7 @@ private List<Result> Commands()
IcoPath = "Images\\checkupdate.png",
Action = c =>
{
Application.Current.MainWindow.Hide();
context.API.HideMainWindow();
context.API.CheckForNewUpdate();
return true;
}
Expand Down
Loading