mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change copied icon logic as origin
This commit is contained in:
parent
5b2fb1fb38
commit
e403c41530
2 changed files with 14 additions and 2 deletions
|
|
@ -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 = _ =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue