diff --git a/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs b/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs index 116163e36b..b3a0687916 100644 --- a/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs +++ b/src/modules/launcher/PowerLauncher/PublicAPIInstance.cs @@ -49,19 +49,6 @@ namespace Wox _mainVM.ChangeQueryText(query, requery); } - public void RestartApp() - { - _mainVM.MainWindowVisibility = Visibility.Hidden; - - // we must manually save - // UpdateManager.RestartApp() will call Environment.Exit(0) - // which will cause ungraceful exit - SaveAppAllSettings(); - - // Todo : Implement logic to restart this app. - Environment.Exit(0); - } - public void CheckForNewUpdate() { // _settingsVM.UpdateApp(); diff --git a/src/modules/launcher/Wox.Plugin/IPublicAPI.cs b/src/modules/launcher/Wox.Plugin/IPublicAPI.cs index 2fcc1e4f18..3e913f0e3f 100644 --- a/src/modules/launcher/Wox.Plugin/IPublicAPI.cs +++ b/src/modules/launcher/Wox.Plugin/IPublicAPI.cs @@ -23,11 +23,6 @@ namespace Wox.Plugin /// void ChangeQuery(string query, bool requery = false); - /// - /// Restart Wox - /// - void RestartApp(); - /// /// Remove user selected history item and refresh/requery ///