Skip to content

Commit 1b2b49a

Browse files
authored
Merge pull request #3529 from Flow-Launcher/home_page_history
Fix Homepage with triggers history results on arrow up
2 parents fde6b2d + af5ff43 commit 1b2b49a

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 // No items in result list, e.g. when home page is off and no query text is entered, therefore the view is collapsed.
524+
&& _history.Items.Count > 0) // Have history items
524525
{
525526
lastHistoryIndex = 1;
526527
ReverseHistory();

0 commit comments

Comments
 (0)