Skip to content

Commit 2f8e5b9

Browse files
committed
Add new setting to enable favorite icons
1 parent 524fb6a commit 2f8e5b9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
<system:String x:Key="flowlauncher_plugin_browserbookmark_browserEngine">Browser Engine</system:String>
2828
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage01">If you are not using Chrome, Firefox or Edge, or you are using their portable version, you need to add bookmarks data directory and select correct browser engine to make this plugin work.</system:String>
2929
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage02">For example: Brave's engine is Chromium; and its default bookmarks data location is: "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\UserData". For Firefox engine, the bookmarks directory is the userdata folder contains the places.sqlite file.</system:String>
30+
<system:String x:Key="flowlauncher_plugin_browserbookmark_enable_favorite_icons">Load favorite icons (It may cost much time)</system:String>
31+
3032
</ResourceDictionary>

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public class Settings : BaseModel
88

99
public string BrowserPath { get; set; }
1010

11+
public bool EnableFavoriteIcons { get; set; } = false;
12+
1113
public bool LoadChromeBookmark { get; set; } = true;
1214
public bool LoadFirefoxBookmark { get; set; } = true;
1315
public bool LoadEdgeBookmark { get; set; } = true;

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Grid.RowDefinitions>
1313
<RowDefinition Height="Auto" />
1414
<RowDefinition Height="Auto" />
15+
<RowDefinition Height="Auto" />
1516
</Grid.RowDefinitions>
1617
<StackPanel
1718
Grid.Row="0"
@@ -91,5 +92,12 @@
9192
Content="{DynamicResource flowlauncher_plugin_browserbookmark_removeBrowserBookmark}" />
9293
</StackPanel>
9394
</StackPanel>
95+
<CheckBox
96+
Grid.Row="2"
97+
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
98+
HorizontalAlignment="Left"
99+
VerticalAlignment="Center"
100+
Content="{DynamicResource flowlauncher_plugin_browserbookmark_enable_favorite_icons}"
101+
IsChecked="{Binding Settings.EnableFavoriteIcons}" />
94102
</Grid>
95103
</UserControl>

0 commit comments

Comments
 (0)