forked from Flow-Launcher/Flow.Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Flow-Launcher#2652 from Flow-Launcher/code-cleanup…
…/Flow.Launcher.Plugin.BrowserBookmark Code cleanup: Flow.Launcher.Plugin.BrowserBookmark
- Loading branch information
Showing
17 changed files
with
640 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ https | |
ssh | ||
ubuntu | ||
runcount | ||
Firefox | ||
Português | ||
Português (Brasil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ WCA_ACCENT_POLICY | |
HGlobal | ||
dopusrt | ||
firefox | ||
Firefox | ||
msedge | ||
svgc | ||
ime | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
Plugins/Flow.Launcher.Plugin.BrowserBookmark/CustomChromiumBookmarkLoader.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
using Flow.Launcher.Plugin.BrowserBookmark.Models; | ||
using System.Collections.Generic; | ||
|
||
namespace Flow.Launcher.Plugin.BrowserBookmark | ||
namespace Flow.Launcher.Plugin.BrowserBookmark; | ||
|
||
public class CustomChromiumBookmarkLoader : ChromiumBookmarkLoader | ||
{ | ||
public class CustomChromiumBookmarkLoader : ChromiumBookmarkLoader | ||
public CustomChromiumBookmarkLoader(CustomBrowser browser) | ||
{ | ||
public CustomChromiumBookmarkLoader(CustomBrowser browser) | ||
{ | ||
BrowserName = browser.Name; | ||
BrowserDataPath = browser.DataDirectoryPath; | ||
} | ||
public string BrowserDataPath { get; init; } | ||
public string BookmarkFilePath { get; init; } | ||
public string BrowserName { get; init; } | ||
|
||
public override List<Bookmark> GetBookmarks() => BrowserDataPath != null ? LoadBookmarks(BrowserDataPath, BrowserName) : LoadBookmarksFromFile(BookmarkFilePath, BrowserName); | ||
BrowserName = browser.Name; | ||
BrowserDataPath = browser.DataDirectoryPath; | ||
} | ||
} | ||
public string BrowserDataPath { get; init; } | ||
public string BookmarkFilePath { get; init; } | ||
public string BrowserName { get; init; } | ||
|
||
public override List<Bookmark> GetBookmarks() => BrowserDataPath != null ? LoadBookmarks(BrowserDataPath, BrowserName) : LoadBookmarksFromFile(BookmarkFilePath, BrowserName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.