From b47206e359cfc7beed6855f9aafd6232a2a39039 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 7 Nov 2022 20:34:26 +1100 Subject: [PATCH] add requery to refresh the results after drag --- Flow.Launcher/ResultListBox.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/ResultListBox.xaml.cs b/Flow.Launcher/ResultListBox.xaml.cs index a0ffc159a..734165f74 100644 --- a/Flow.Launcher/ResultListBox.xaml.cs +++ b/Flow.Launcher/ResultListBox.xaml.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Windows; using System.Windows.Controls; @@ -61,6 +61,7 @@ namespace Flow.Launcher private Point start; private string file; + private string query; private void ResultList_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { @@ -68,6 +69,7 @@ namespace Flow.Launcher return; file = result.Result.CopyText; + query = result.Result.OriginQuery.RawQuery; start = e.GetPosition(null); } @@ -93,6 +95,7 @@ namespace Flow.Launcher file }); DragDrop.DoDragDrop((DependencyObject)sender, data, DragDropEffects.Move | DragDropEffects.Copy); + App.API.ChangeQuery(query, true); e.Handled = true; } }