File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,12 @@ public string PluginDirectory
251
251
/// </summary>
252
252
public string RecordKey { get ; set ; } = null ;
253
253
254
+ /// <summary>
255
+ /// Determines if the badge icon should be shown.
256
+ /// If users want to show the result badges and here you set this to true, the results will show the badge icon.
257
+ /// </summary>
258
+ public bool ShowBadge { get ; set ; } = false ;
259
+
254
260
/// <summary>
255
261
/// Run this result, asynchronously
256
262
/// </summary>
Original file line number Diff line number Diff line change @@ -128,9 +128,13 @@ public Visibility ShowBadge
128
128
{
129
129
get
130
130
{
131
- if ( ! Settings . ShowBadges || ! BadgeIconAvailable )
131
+ // If results do not allow badges, or user has disabled badges in settings,
132
+ // or badge icon is not available, then do not show badge
133
+ if ( ! Result . ShowBadge || ! Settings . ShowBadges || ! BadgeIconAvailable )
132
134
return Visibility . Collapsed ;
133
135
136
+ // If user has set to show badges only for global results, and this is not a global result,
137
+ // then do not show badge
134
138
if ( Settings . ShowBadgesGlobalOnly && ! IsGlobalQuery )
135
139
return Visibility . Collapsed ;
136
140
You can’t perform that action at this time.
0 commit comments