Skip to content

Commit f982d80

Browse files
committed
Support enable favorite icons for chromiun bookmarks
1 parent cef3e8e commit f982d80

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,20 @@ protected List<Bookmark> LoadBookmarks(string browserDataPath, string name)
4343
catch (Exception ex)
4444
{
4545
Main._context.API.LogException(ClassName, $"Failed to register bookmark file monitoring: {bookmarkPath}", ex);
46+
continue;
4647
}
4748

4849
var source = name + (Path.GetFileName(profile) == "Default" ? "" : $" ({Path.GetFileName(profile)})");
4950
var profileBookmarks = LoadBookmarksFromFile(bookmarkPath, source);
5051

5152
// Load favicons after loading bookmarks
52-
var faviconDbPath = Path.Combine(profile, "Favicons");
53-
if (File.Exists(faviconDbPath))
53+
if (Main._settings.EnableFavoriteIcons)
5454
{
55-
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
55+
var faviconDbPath = Path.Combine(profile, "Favicons");
56+
if (File.Exists(faviconDbPath))
57+
{
58+
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
59+
}
5660
}
5761

5862
bookmarks.AddRange(profileBookmarks);

0 commit comments

Comments
 (0)