mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix query becoming empty string after DoDragDrop call
This commit is contained in:
parent
5b6a18879c
commit
3415656d5b
1 changed files with 5 additions and 2 deletions
|
|
@ -132,10 +132,13 @@ namespace Flow.Launcher
|
|||
{
|
||||
path
|
||||
});
|
||||
|
||||
|
||||
// Reassigning query to a new variable because for some reason
|
||||
// after DragDrop.DoDragDrop call, 'query' loses its content, i.e. becomes empty string
|
||||
var rawQuery = query;
|
||||
var effect = DragDrop.DoDragDrop((DependencyObject)sender, data, DragDropEffects.Move | DragDropEffects.Copy);
|
||||
if (effect == DragDropEffects.Move)
|
||||
App.API.ChangeQuery(query, true);
|
||||
App.API.ChangeQuery(rawQuery, true);
|
||||
}
|
||||
private void ResultListBox_OnPreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue