This commit is contained in:
01Dri 2025-12-14 18:54:14 -03:00
parent 8138e71d51
commit 492321072c

View file

@ -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<Result> DeepCloneResults(IReadOnlyList<Result> results, bool isDialogJump, CancellationToken token = default)