Skip to content

Commit 47398f1

Browse files
committed
Add ShowPluginBadges settings
1 parent 3e20c51 commit 47398f1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public string Theme
101101
public bool UseAnimation { get; set; } = true;
102102
public bool UseSound { get; set; } = true;
103103
public double SoundVolume { get; set; } = 50;
104+
public bool ShowPluginBadges { get; set; } = false;
104105

105106
public bool UseClock { get; set; } = true;
106107
public bool UseDate { get; set; } = false;

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
VerticalAlignment="Bottom"
147147
RenderOptions.BitmapScalingMode="Fant"
148148
Source="{Binding Image, TargetNullValue={x:Null}}"
149-
Visibility="{Binding ShowBadge, Converter={StaticResource BoolToVisibilityConverter}}" />
149+
Visibility="{Binding ShowBadge}" />
150150
</Grid>
151151
</Border>
152152
</Grid>

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ public Visibility ShowGlyph
123123
}
124124
}
125125

126+
public Visibility ShowBadge
127+
{
128+
get => Settings.ShowPluginBadges ? Visibility.Visible : Visibility.Collapsed;
129+
}
130+
126131
private bool GlyphAvailable => Glyph is not null;
127132

128133
private bool ImgIconAvailable => !string.IsNullOrEmpty(Result.IcoPath) || Result.Icon is not null;

0 commit comments

Comments
 (0)