File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed 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 ;
@@ -164,10 +164,25 @@ public string BadgeIcoPath
164164 [ JsonIgnore ]
165165 public IconDelegate BadgeIcon = null ;
166166
167+ private GlyphInfo _glyph ;
168+
167169 /// <summary>
168170 /// Information for Glyph Icon (Prioritized than IcoPath/Icon if user enable Glyph Icons)
169171 /// </summary>
170- public GlyphInfo Glyph { get ; set ; }
172+ public GlyphInfo Glyph
173+ {
174+ get => _glyph ;
175+ init => _glyph = value ;
176+ }
177+
178+ /// <summary>
179+ /// Set the Glyph Icon
180+ /// </summary>
181+ /// <param name="glyph"></param>
182+ public void SetGlyph ( GlyphInfo glyph )
183+ {
184+ _glyph = glyph ;
185+ }
171186
172187 /// <summary>
173188 /// 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 @@ -78,7 +78,7 @@ public void Add(Result result)
7878
7979 if ( existingHistoryItem . Glyph ? . Glyph != result . Glyph ? . Glyph
8080 || existingHistoryItem . Glyph ? . FontFamily != result . Glyph ? . FontFamily )
81- existingHistoryItem . Glyph = result . Glyph ;
81+ existingHistoryItem . SetGlyph ( result . Glyph ) ;
8282 }
8383 else
8484 {
You can’t perform that action at this time.
0 commit comments