mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
ReQuery method overloading, reselect flag.
This commit is contained in:
parent
50f71c0731
commit
e722927d9e
1 changed files with 12 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ namespace Flow.Launcher.ViewModel
|
|||
#region Private Fields
|
||||
|
||||
private bool _isQueryRunning;
|
||||
private bool _reselect = true;
|
||||
private Query _lastQuery;
|
||||
private Result lastContextMenuResult = new Result();
|
||||
private List<Result> lastContextMenuResults = new List<Result>();
|
||||
|
|
@ -216,6 +217,15 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
public void ReQuery(bool reselect)
|
||||
{
|
||||
if (SelectedIsFromQueryResults())
|
||||
{
|
||||
_reselect = reselect;
|
||||
QueryResults(isReQuery: true);
|
||||
}
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void LoadContextMenu()
|
||||
{
|
||||
|
|
@ -1151,7 +1161,8 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
Results.AddResults(resultsForUpdates, token);
|
||||
Results.AddResults(resultsForUpdates, token, _reselect);
|
||||
_reselect = true;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue