From 39c4a2be2ea4bf55e2e2b8aa42058e4b8709e434 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:35:06 +0800 Subject: [PATCH] Auto reload bookmarks when editing checkboxes --- .../Views/CustomBrowserSetting.xaml.cs | 3 +- .../Views/SettingsControl.xaml | 6 +- .../Views/SettingsControl.xaml.cs | 57 ++++++++++++++++--- 3 files changed, 52 insertions(+), 14 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs index 816029182..bdef5bf0f 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs @@ -2,7 +2,6 @@ using System.Windows; using System.Windows.Input; using System.Windows.Forms; -using System.Threading.Tasks; namespace Flow.Launcher.Plugin.BrowserBookmark.Views { @@ -30,7 +29,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark.Views currentCustomBrowser.Name = editBrowser.Name; currentCustomBrowser.DataDirectoryPath = editBrowser.DataDirectoryPath; currentCustomBrowser.BrowserType = editBrowser.BrowserType; - _ = Task.Run(() => Main.ReloadAllBookmarks()); + DialogResult = true; Close(); } diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml index 408256f45..014deff03 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml @@ -18,15 +18,15 @@ + IsChecked="{Binding LoadChromeBookmark}" /> + IsChecked="{Binding LoadEdgeBookmark}" /> + IsChecked="{Binding LoadFirefoxBookmark}" />