Skip to content

Commit 3d6d79b

Browse files
Simplify conditions
1 parent 9ac92e2 commit 3d6d79b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,8 @@ private void SelectNextPage()
429429
private void SelectPrevItem()
430430
{
431431
if (_history.Items.Count > 0
432-
&& _queryText == String.Empty
433-
&& !HistorySelected()
434-
&& !ContextMenuSelected())
432+
&& QueryText == string.Empty
433+
&& SelectedIsFromQueryResults())
435434
{
436435
lastHistoryIndex = 1;
437436
ReverseHistory();

0 commit comments

Comments
 (0)