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(); }