From 9f652c33b4900a7a7738a483b9de2bf155701b52 Mon Sep 17 00:00:00 2001 From: 01Dri Date: Tue, 14 Oct 2025 22:51:09 -0300 Subject: [PATCH] History items filtered based on HistoryStyle. --- Flow.Launcher/ViewModel/MainViewModel.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 8fd6de6f5..22476a79c 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1318,9 +1318,10 @@ namespace Flow.Launcher.ViewModel private List GetHistoryItems(IEnumerable historyItems) { var results = new List(); + var historyItemsFiltered = historyItems.Where(x => x.HistoryStyle == Settings.HistoryStyle).ToList(); if (Settings.HistoryStyle == HistoryStyle.Query) { - foreach (var h in historyItems) + foreach (var h in historyItemsFiltered) { var result = new Result { @@ -1341,7 +1342,7 @@ namespace Flow.Launcher.ViewModel } else { - foreach (var h in historyItems) + foreach (var h in historyItemsFiltered) { var result = new Result { @@ -1364,15 +1365,14 @@ namespace Flow.Launcher.ViewModel { await reflectResult.AsyncAction(c); } + return false; } - else - { - App.API.BackToQueryResults(); - App.API.ChangeQuery(h.Query); - return false; - } - }, + + App.API.BackToQueryResults(); + App.API.ChangeQuery(h.Query); + return false; + }, Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uE81C") }; results.Add(result);