Simplify conditions

This commit is contained in:
VictoriousRaptor 2024-05-19 23:27:24 +08:00
parent 9ac92e2939
commit 3d6d79b6e4

View file

@ -429,9 +429,8 @@ namespace Flow.Launcher.ViewModel
private void SelectPrevItem()
{
if (_history.Items.Count > 0
&& _queryText == String.Empty
&& !HistorySelected()
&& !ContextMenuSelected())
&& QueryText == string.Empty
&& SelectedIsFromQueryResults())
{
lastHistoryIndex = 1;
ReverseHistory();