feat: code quality

This commit is contained in:
01Dri 2025-10-11 02:56:49 -03:00
parent bf2acfec38
commit 95122e91f5
2 changed files with 2 additions and 13 deletions

View file

@ -30,6 +30,7 @@ namespace Flow.Launcher.Storage
}
public List<HistoryItem> 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)

View file

@ -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<HistoryItemLegacy> Items { get; private set; } = [];
}