diff --git a/Flow.Launcher.Core/Plugin/PluginInstaller.cs b/Flow.Launcher.Core/Plugin/PluginInstaller.cs index fdea98b5d..df38ca608 100644 --- a/Flow.Launcher.Core/Plugin/PluginInstaller.cs +++ b/Flow.Launcher.Core/Plugin/PluginInstaller.cs @@ -86,7 +86,7 @@ namespace Flow.Launcher.Core.Plugin "Restart Flow Launcher to take effect?", "Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { - PluginManager.API.RestarApp(); + PluginManager.API.RestartApp(); } } } diff --git a/Flow.Launcher.Plugin/IPublicAPI.cs b/Flow.Launcher.Plugin/IPublicAPI.cs index 7fa7cefe2..2e754a0ff 100644 --- a/Flow.Launcher.Plugin/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/IPublicAPI.cs @@ -43,6 +43,12 @@ namespace Flow.Launcher.Plugin /// /// Restart Flow Launcher /// + void RestartApp(); + + /// + /// Restart Flow Launcher + /// + [Obsolete("Use RestartApp instead. This method will be removed in Flow Launcher 1.3")] void RestarApp(); /// diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index 16339fb1e..530e6443c 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -54,7 +54,7 @@ namespace Flow.Launcher Application.Current.MainWindow.Close(); } - public void RestarApp() + public void RestartApp() { _mainVM.MainWindowVisibility = Visibility.Hidden; @@ -66,6 +66,11 @@ namespace Flow.Launcher UpdateManager.RestartApp(Constant.ApplicationFileName); } + public void RestarApp() + { + RestartApp(); + } + public void CheckForNewUpdate() { _settingsVM.UpdateApp(); diff --git a/Plugins/Flow.Launcher.Plugin.PluginManagement/Main.cs b/Plugins/Flow.Launcher.Plugin.PluginManagement/Main.cs index 5b2804ed5..586513acd 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginManagement/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.PluginManagement/Main.cs @@ -220,7 +220,7 @@ namespace Flow.Launcher.Plugin.PluginManagement "Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { - context.API.RestarApp(); + context.API.RestartApp(); } } } diff --git a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs index f4f131279..0b57608c3 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/Main.cs @@ -205,7 +205,7 @@ namespace Flow.Launcher.Plugin.Sys IcoPath = "Images\\app.png", Action = c => { - context.API.RestarApp(); + context.API.RestartApp(); return false; } },