mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Make sure back to query results from context menu before changing query
This commit is contained in:
parent
e4632926e3
commit
ddbbd693e8
5 changed files with 7 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ namespace Flow.Launcher
|
|||
|
||||
private void BtnTestActionKeyword_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ChangeQuery(tbAction.Text);
|
||||
Application.Current.MainWindow.Show();
|
||||
Application.Current.MainWindow.Opacity = 1;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ namespace Flow.Launcher
|
|||
|
||||
private void BtnTestShortcut_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ChangeQuery(tbExpand.Text);
|
||||
Application.Current.MainWindow.Show();
|
||||
Application.Current.MainWindow.Opacity = 1;
|
||||
|
|
|
|||
|
|
@ -149,7 +149,10 @@ namespace Flow.Launcher
|
|||
var rawQuery = query;
|
||||
var effect = DragDrop.DoDragDrop((DependencyObject)sender, data, DragDropEffects.Move | DragDropEffects.Copy);
|
||||
if (effect == DragDropEffects.Move)
|
||||
{
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ChangeQuery(rawQuery, true);
|
||||
}
|
||||
}
|
||||
private void ResultListBox_OnPreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ namespace Flow.Launcher.ViewModel
|
|||
private void ShowCommandQuery(string action)
|
||||
{
|
||||
var actionKeyword = PluginManagerData.Metadata.ActionKeywords.Any() ? PluginManagerData.Metadata.ActionKeywords[0] + " " : String.Empty;
|
||||
App.API.BackToQueryResults();
|
||||
App.API.ChangeQuery($"{actionKeyword}{action} {_plugin.Name}");
|
||||
App.API.ShowMainWindow();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ namespace Flow.Launcher.ViewModel
|
|||
[RelayCommand]
|
||||
private void OpenDeletePluginWindow()
|
||||
{
|
||||
PluginManager.API.BackToQueryResults();
|
||||
PluginManager.API.ChangeQuery($"{PluginManagerActionKeyword} uninstall {PluginPair.Metadata.Name}".Trim(), true);
|
||||
PluginManager.API.ShowMainWindow();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue