mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Support enable favorite icons for chromiun bookmarks
This commit is contained in:
parent
cef3e8e4bb
commit
f982d80ffe
1 changed files with 7 additions and 3 deletions
|
|
@ -43,16 +43,20 @@ public abstract class ChromiumBookmarkLoader : IBookmarkLoader
|
|||
catch (Exception ex)
|
||||
{
|
||||
Main._context.API.LogException(ClassName, $"Failed to register bookmark file monitoring: {bookmarkPath}", ex);
|
||||
continue;
|
||||
}
|
||||
|
||||
var source = name + (Path.GetFileName(profile) == "Default" ? "" : $" ({Path.GetFileName(profile)})");
|
||||
var profileBookmarks = LoadBookmarksFromFile(bookmarkPath, source);
|
||||
|
||||
// Load favicons after loading bookmarks
|
||||
var faviconDbPath = Path.Combine(profile, "Favicons");
|
||||
if (File.Exists(faviconDbPath))
|
||||
if (Main._settings.EnableFavoriteIcons)
|
||||
{
|
||||
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
|
||||
var faviconDbPath = Path.Combine(profile, "Favicons");
|
||||
if (File.Exists(faviconDbPath))
|
||||
{
|
||||
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
|
||||
}
|
||||
}
|
||||
|
||||
bookmarks.AddRange(profileBookmarks);
|
||||
|
|
|
|||
Loading…
Reference in a new issue