From 8fc15fc43edb5957ac4c683902ef7be80a1f3dc7 Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Mon, 12 Sep 2022 21:22:59 +0200 Subject: [PATCH] [PowerLauncher] Remove unused API --- .../launcher/PowerLauncher/PublicAPIInstance.cs | 13 ------------- src/modules/launcher/Wox.Plugin/IPublicAPI.cs | 5 ----- 2 files changed, 18 deletions(-) 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 ///