diff --git a/Flow.Launcher/Storage/QueryHistory.cs b/Flow.Launcher/Storage/QueryHistory.cs index d612c81d0..6af2a5908 100644 --- a/Flow.Launcher/Storage/QueryHistory.cs +++ b/Flow.Launcher/Storage/QueryHistory.cs @@ -35,9 +35,9 @@ namespace Flow.Launcher.Storage LastOpenedHistoryItems.Add(new LastOpenedHistoryResult { Title = Localize.executeQuery(item.Query), - IcoPath = Constant.HistoryIcon, + IcoPath = null, OriginQuery = new Query { TrimmedQuery = item.Query }, - Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uE81C"), + Glyph = null, Query = item.Query, Action = _ => { diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 7de29232e..7e5869b65 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1352,6 +1352,18 @@ namespace Flow.Launcher.ViewModel if (Settings.HistoryStyle == HistoryStyle.Query) { copiedItem.Title = Localize.executeQuery(copiedItem.Query); + copiedItem.IcoPath = Constant.HistoryIcon; + // TODO: Add Glyph here + // copiedItem.Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uE81C"); + } + else + { + if (string.IsNullOrEmpty(copiedItem.IcoPath)) // Must manually set missing image icon here + { + copiedItem.IcoPath = Constant.MissingImgIcon; + } + copiedItem.ShowBadge = true; + copiedItem.BadgeIcoPath = Constant.HistoryIcon; } // Subtitle has datetime which can cause duplicates when saving.