diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/CustomChromiumBookmarkLoader.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/CustomChromiumBookmarkLoader.cs index 1cd2a865b..fa98f4d7c 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/CustomChromiumBookmarkLoader.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/CustomChromiumBookmarkLoader.cs @@ -8,7 +8,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark public CustomChromiumBookmarkLoader(CustomBrowser browser) { BrowserName = browser.Name; - BrowserDataPath = browser.Path; + BrowserDataPath = browser.DataDirectoryPath; } public string BrowserDataPath { get; init; } public string BookmarkFilePath { get; init; } diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs index eaf14d5c2..f8610a9ec 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs @@ -26,7 +26,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark _settings = context.API.LoadSettingJsonStorage(); - cachedBookmarks = BookmarkLoader.LoadAllBookmarks(); + cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings); } public List Query(Query query) @@ -93,7 +93,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark { cachedBookmarks.Clear(); - cachedBookmarks = BookmarkLoader.LoadAllBookmarks(); + cachedBookmarks = BookmarkLoader.LoadAllBookmarks(_settings); } public string GetTranslatedPluginTitle() diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/CustomBrowser.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/CustomBrowser.cs index 1ddeab5df..aeff82802 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/CustomBrowser.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/CustomBrowser.cs @@ -3,6 +3,6 @@ public class CustomBrowser : BaseModel { public string Name { get; set; } - public string Path { get; set; } + public string DataDirectoryPath { get; set; } } } \ No newline at end of file diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs index 94a270984..a426dd9fb 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs @@ -15,12 +15,12 @@ namespace Flow.Launcher.Plugin.BrowserBookmark.Models new CustomBrowser { Name="awefawef", - Path="awefawef" + DataDirectoryPath="awefawef" }, new CustomBrowser { Name = "awefawefawefawef", - Path = "aweawefawfawef" + DataDirectoryPath = "aweawefawfawef" } }; } diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml index 2370789f1..85452a89b 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml @@ -5,7 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Flow.Launcher.Plugin.BrowserBookmark.Models" mc:Ignorable="d" - Title="CustomBrowserSetting" Height="300" Width="400" + Title="CustomBrowserSetting" Height="450" Width="600" > @@ -22,11 +22,11 @@ - -