From 5b2fb1fb3875900e8bb692d604f5319e20b190be Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Mon, 5 Jan 2026 22:26:39 +0800
Subject: [PATCH] Revert "Ensure history items have valid icons in
QueryHistory"
This reverts commit e6a91a9959d3e07d6d8f315f1ee781b93f6935f1.
---
Flow.Launcher/Storage/QueryHistory.cs | 18 ------------------
Flow.Launcher/ViewModel/MainViewModel.cs | 2 +-
2 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/Flow.Launcher/Storage/QueryHistory.cs b/Flow.Launcher/Storage/QueryHistory.cs
index 0622248fb..d612c81d0 100644
--- a/Flow.Launcher/Storage/QueryHistory.cs
+++ b/Flow.Launcher/Storage/QueryHistory.cs
@@ -51,24 +51,6 @@ namespace Flow.Launcher.Storage
Items.Clear();
}
- ///
- /// Checks all items in for empty IcoPath.
- /// If found, updates it using the history icon.
- ///
- ///
- /// We need this because some prereleased version of Flow did not set the IcoPath when adding.
- ///
- public void CheckIcoPathValidity()
- {
- foreach (var item in LastOpenedHistoryItems)
- {
- if (string.IsNullOrEmpty(item.IcoPath))
- {
- item.IcoPath = Constant.HistoryIcon;
- }
- }
- }
-
///
/// Records a result into the last-opened history list ().
/// This will also update the IcoPath if existing history item has one that is different.
diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs
index e9f902f13..7de29232e 100644
--- a/Flow.Launcher/ViewModel/MainViewModel.cs
+++ b/Flow.Launcher/ViewModel/MainViewModel.cs
@@ -1405,7 +1405,7 @@ namespace Flow.Launcher.ViewModel
internal void RefreshLastOpenedHistoryResults()
{
_history.PopulateHistoryFromLegacyHistory();
- _history.CheckIcoPathValidity();
+
_history.UpdateIcoPathAbsolute();
}