mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
18 lines
697 B
C#
18 lines
697 B
C#
using Flow.Launcher.Plugin.BrowserBookmark.Models;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Flow.Launcher.Plugin.BrowserBookmark;
|
|
|
|
public class CustomChromiumBookmarkLoader : ChromiumBookmarkLoader
|
|
{
|
|
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);
|
|
}
|