Use API mainwindow show

This commit is contained in:
Kevin Zhang 2021-12-05 21:06:33 -06:00
parent 5f9036568d
commit 6565b55746

View file

@ -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()