From 3d6d79b6e4695959d428b328bea9a9dd2e164600 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 19 May 2024 23:27:24 +0800 Subject: [PATCH] Simplify conditions --- Flow.Launcher/ViewModel/MainViewModel.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index fbd35ed5b..01dc67b98 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -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();