Skip to content

Commit 6565b55

Browse files
committed
Use API mainwindow show
1 parent 5f90365 commit 6565b55

File tree

1 file changed

+1
-3
lines changed
  • Plugins/Flow.Launcher.Plugin.Shell

1 file changed

+1
-3
lines changed

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ private void OnWinRPressed()
340340
context.API.ChangeQuery($"{context.CurrentPluginMetadata.ActionKeywords[0]}{Plugin.Query.TermSeparator}");
341341

342342
// show the main window and set focus to the query box
343-
Window mainWindow = Application.Current.MainWindow;
344-
mainWindow.Show();
345-
mainWindow.Focus();
343+
context.API.ShowMainWindow();
346344
}
347345

348346
public Control CreateSettingPanel()

0 commit comments

Comments
 (0)