mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3529 from Flow-Launcher/home_page_history
Fix Homepage with triggers history results on arrow up
This commit is contained in:
commit
1b2b49a47a
1 changed files with 4 additions and 3 deletions
|
|
@ -518,9 +518,10 @@ namespace Flow.Launcher.ViewModel
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
private void SelectPrevItem()
|
private void SelectPrevItem()
|
||||||
{
|
{
|
||||||
if (_history.Items.Count > 0
|
if (QueryResultsSelected() // Results selected
|
||||||
&& QueryText == string.Empty
|
&& string.IsNullOrEmpty(QueryText) // No input
|
||||||
&& QueryResultsSelected())
|
&& 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.
|
||||||
|
&& _history.Items.Count > 0) // Have history items
|
||||||
{
|
{
|
||||||
lastHistoryIndex = 1;
|
lastHistoryIndex = 1;
|
||||||
ReverseHistory();
|
ReverseHistory();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue