From 492321072c7642c161c72d1825f8f5ff946cc6a9 Mon Sep 17 00:00:00 2001 From: 01Dri Date: Sun, 14 Dec 2025 18:54:14 -0300 Subject: [PATCH] doc --- Flow.Launcher/ViewModel/MainViewModel.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 2584cdb88..567633ce5 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -524,7 +524,7 @@ namespace Flow.Launcher.ViewModel { // not null means pressing modifier key + number, should ignore the modifier key SpecialKeyState = index is not null ? SpecialKeyState.Default : GlobalHotkey.CheckModifiers() - }).ConfigureAwait(false); + }).ConfigureAwait(false) ; if (hideWindow) { @@ -534,13 +534,14 @@ namespace Flow.Launcher.ViewModel // Record user selected result for result ranking _userSelectedRecord.Add(result); - // Add item to history only if it is from results but not context menu or history + // Add item to history and topmost only if it is from results but not context menu or history if (queryResultsSelected) { _history.Add(result); lastHistoryIndex = 1; - if (Settings.AutoTopmost) _topMostRecord.AddOrUpdate(result); - } + if (Settings.AutoTopmost) + _topMostRecord.AddOrUpdate(result); + } } private static IReadOnlyList DeepCloneResults(IReadOnlyList results, bool isDialogJump, CancellationToken token = default)