Skip to content

Commit 25d985b

Browse files
committed
Fix Homepage with triggers history results on arrow up
1 parent ac37e41 commit 25d985b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,10 @@ private void SelectNextPage()
518518
[RelayCommand]
519519
private void SelectPrevItem()
520520
{
521-
if (_history.Items.Count > 0
522-
&& QueryText == string.Empty
523-
&& QueryResultsSelected())
521+
if (QueryResultsSelected() // Results selected
522+
&& string.IsNullOrEmpty(QueryText) // No input
523+
&& Results.Visibility != Visibility.Visible // Results closed which means no items in Results
524+
&& _history.Items.Count > 0) // Have history items
524525
{
525526
lastHistoryIndex = 1;
526527
ReverseHistory();

0 commit comments

Comments
 (0)