File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . IO ;
44using System . Threading . Tasks ;
@@ -167,7 +167,7 @@ public string BadgeIcoPath
167167 /// <summary>
168168 /// Information for Glyph Icon (Prioritized than IcoPath/Icon if user enable Glyph Icons)
169169 /// </summary>
170- public GlyphInfo Glyph { get ; init ; }
170+ public GlyphInfo Glyph { get ; set ; }
171171
172172 /// <summary>
173173 /// An action to take in the form of a function call when the result has been selected.
Original file line number Diff line number Diff line change 44using System . Text . Json . Serialization ;
55using Flow . Launcher . Core . Plugin ;
66using Flow . Launcher . Plugin ;
7+ using Svg ;
78
89namespace Flow . Launcher . Storage
910{
@@ -72,10 +73,13 @@ public void Add(Result result)
7273 TryGetLastOpenedHistoryResult ( result , out var existingHistoryItem ) )
7374 {
7475 existingHistoryItem . ExecutedDateTime = DateTime . Now ;
76+
7577 if ( existingHistoryItem . IcoPath != result . IcoPath )
76- {
7778 existingHistoryItem . IcoPath = result . IcoPath ;
78- }
79+
80+ if ( existingHistoryItem . Glyph . Glyph != result . Glyph . Glyph
81+ || existingHistoryItem . Glyph . FontFamily != result . Glyph . FontFamily )
82+ existingHistoryItem . Glyph = result . Glyph ;
7983 }
8084 else
8185 {
You can’t perform that action at this time.
0 commit comments