diff --git a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs index 41c4ae816..de934f3ef 100644 --- a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs @@ -340,9 +340,7 @@ namespace Flow.Launcher.Plugin.Shell context.API.ChangeQuery($"{context.CurrentPluginMetadata.ActionKeywords[0]}{Plugin.Query.TermSeparator}"); // show the main window and set focus to the query box - Window mainWindow = Application.Current.MainWindow; - mainWindow.Show(); - mainWindow.Focus(); + context.API.ShowMainWindow(); } public Control CreateSettingPanel()