-
-
Notifications
You must be signed in to change notification settings - Fork 455
Dev branch: Fix Bookmark plugin settings browser edit #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,22 +10,17 @@ namespace Flow.Launcher.Plugin.BrowserBookmark | |
| { | ||
| public class EdgeBookmarkLoader : ChromiumBookmarkLoader | ||
| { | ||
|
|
||
| private readonly List<Bookmark> _bookmarks = new(); | ||
|
|
||
| private void LoadEdgeBookmarks() | ||
| private List<Bookmark> LoadEdgeBookmarks() | ||
| { | ||
| var bookmarks = new List<Bookmark>(); | ||
| var platformPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); | ||
| LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge\User Data"), "Microsoft Edge"); | ||
| LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge Dev\User Data"), "Microsoft Edge Dev"); | ||
| LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge SxS\User Data"), "Microsoft Edge Canary"); | ||
| bookmarks.AddRange(LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge\User Data"), "Microsoft Edge")); | ||
| bookmarks.AddRange(LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge Dev\User Data"), "Microsoft Edge Dev")); | ||
| bookmarks.AddRange(LoadBookmarks(Path.Combine(platformPath, @"Microsoft\Edge SxS\User Data"), "Microsoft Edge Canary")); | ||
|
|
||
| return bookmarks; | ||
|
Comment on lines
-19
to
+21
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. edge bookmark is not loaded due to this, they are not been added, just loaded.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤣🤣🤣 Silly mistake
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no probs. good to go? |
||
| } | ||
|
|
||
| public override List<Bookmark> GetBookmarks() | ||
| { | ||
| _bookmarks.Clear(); | ||
| LoadEdgeBookmarks(); | ||
| return _bookmarks; | ||
| } | ||
| public override List<Bookmark> GetBookmarks() => LoadEdgeBookmarks(); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird, if that's the case, chrome plugin will not be loaded as well.
I use this way to let the children only provide the path toward the data path, so that it may be abstracted.