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)