Add ReuseTabs to Settings

This commit is contained in:
Andrzej Martyna 2025-12-28 17:34:10 +01:00
parent c4549d663d
commit 02248eb971
4 changed files with 20 additions and 0 deletions

View file

@ -31,5 +31,6 @@
<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>
<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>
<system:String x:Key="flowlauncher_plugin_browserbookmark_enable_favicons">Load favicons (can be time consuming during startup)</system:String>
<system:String x:Key="flowlauncher_plugin_browserbookmark_reuse_tabs">Reuse existing tabs (experimental)</system:String>
</ResourceDictionary>

View file

@ -29,5 +29,6 @@
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage01">Jeśli nie używasz Chrome, Firefox lub Edge, lub używasz ich wersji przenośnej, musisz dodać katalog danych zakładek i wybrać poprawny silnik przeglądarki, aby wtyczka działała.</system:String>
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage02">Na przykład: silnikiem przeglądarki Brave jest Chromium, a domyślna lokalizacja danych zakładek to: &quot;%LOCALAPPDATA%\BraveSoftware\Brave-Browser\UserData&quot;. W przypadku silnika Firefoksa, katalog zakładek to folder danych użytkownika zawierający plik places.sqlite.</system:String>
<system:String x:Key="flowlauncher_plugin_browserbookmark_enable_favicons">Wczytaj ikony ulubionych (może być czasochłonne podczas uruchamiania)</system:String>
<system:String x:Key="flowlauncher_plugin_browserbookmark_reuse_tabs">Ponownie używaj otwartych zakładek (funkcja eksperymentalna)</system:String>
</ResourceDictionary>

View file

@ -13,6 +13,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel
Grid.Row="0"
@ -99,5 +100,12 @@
VerticalAlignment="Center"
Content="{DynamicResource flowlauncher_plugin_browserbookmark_enable_favicons}"
IsChecked="{Binding Settings.EnableFavicons}" />
<CheckBox
Grid.Row="3"
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Content="{DynamicResource flowlauncher_plugin_browserbookmark_reuse_tabs}"
IsChecked="{Binding Settings.ReuseTabs}" />
</Grid>
</UserControl>

View file

@ -48,6 +48,16 @@ public partial class SettingsControl
}
}
public bool ReuseTabs
{
get => Settings.ReuseTabs;
set
{
Settings.ReuseTabs = value;
_ = Task.Run(() => Main.ReloadAllBookmarks());
}
}
public bool OpenInNewBrowserWindow
{
get => Settings.OpenInNewBrowserWindow;