From 95122e91f528a24416e7911598801477529b8338 Mon Sep 17 00:00:00 2001 From: 01Dri Date: Sat, 11 Oct 2025 02:56:49 -0300 Subject: [PATCH] feat: code quality --- Flow.Launcher/Storage/History.cs | 3 ++- Flow.Launcher/Storage/HistoryLegacy.cs | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 Flow.Launcher/Storage/HistoryLegacy.cs diff --git a/Flow.Launcher/Storage/History.cs b/Flow.Launcher/Storage/History.cs index b8a395088..539ec64bb 100644 --- a/Flow.Launcher/Storage/History.cs +++ b/Flow.Launcher/Storage/History.cs @@ -30,6 +30,7 @@ namespace Flow.Launcher.Storage } + public List GetHistoryItems(bool isQuery) { if (isQuery) return PopulateActions(QueryHistoryItems, isQuery); @@ -121,7 +122,7 @@ namespace Flow.Launcher.Storage }; var existing = LastOpenedHistoryItems. - FirstOrDefault(x => x.Title == item.Title && x.PluginID == item.PluginID); + FirstOrDefault(x => x.Title == item.Title && x.SubTitle == item.SubTitle && x.PluginID == item.PluginID); if (existing != null) diff --git a/Flow.Launcher/Storage/HistoryLegacy.cs b/Flow.Launcher/Storage/HistoryLegacy.cs deleted file mode 100644 index 8311c0a8d..000000000 --- a/Flow.Launcher/Storage/HistoryLegacy.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json.Serialization; -using System.Threading.Tasks; - -namespace Flow.Launcher.Storage; -public class HistoryLegacy -{ - [JsonInclude] public List Items { get; private set; } = []; -}