mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add requery to refresh the results after drag
This commit is contained in:
parent
69bca5dff1
commit
b47206e359
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue