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; } = []; -}