Skip to content

Commit 94b8a66

Browse files
committed
Rename to favicon
1 parent 69dd038 commit 94b8a66

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ protected List<Bookmark> LoadBookmarks(string browserDataPath, string name)
5252
var profileBookmarks = LoadBookmarksFromFile(bookmarkPath, source);
5353

5454
// Load favicons after loading bookmarks
55-
if (Main._settings.EnableFavoriteIcons)
55+
if (Main._settings.EnableFavicons)
5656
{
5757
var faviconDbPath = Path.Combine(profile, "Favicons");
5858
if (File.Exists(faviconDbPath))
5959
{
60-
Main._context.API.StopwatchLogInfo(ClassName, $"Load {profileBookmarks.Count} favorite icons cost", () =>
60+
Main._context.API.StopwatchLogInfo(ClassName, $"Load {profileBookmarks.Count} favicons cost", () =>
6161
{
6262
LoadFaviconsFromDb(faviconDbPath, profileBookmarks);
6363
});
@@ -157,7 +157,7 @@ private void LoadFaviconsFromDb(string dbPath, List<Bookmark> bookmarks)
157157

158158
try
159159
{
160-
// Since some bookmarks may have same favorite icon id, we need to record them to avoid duplicates
160+
// Since some bookmarks may have same favicon id, we need to record them to avoid duplicates
161161
var savedPaths = new ConcurrentDictionary<string, bool>();
162162

163163
// Get favicons based on bookmarks concurrently
@@ -202,7 +202,7 @@ ORDER BY b.width DESC
202202

203203
var faviconPath = Path.Combine(_faviconCacheDir, $"chromium_{domain}_{iconId}.png");
204204

205-
// Filter out duplicate favorite icons
205+
// Filter out duplicate favicons
206206
if (savedPaths.TryAdd(faviconPath, true))
207207
{
208208
SaveBitmapData(imageData, faviconPath);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ protected List<Bookmark> GetBookmarksFromPath(string placesPath)
7878
.ToList();
7979

8080
// Load favicons after loading bookmarks
81-
if (Main._settings.EnableFavoriteIcons)
81+
if (Main._settings.EnableFavicons)
8282
{
8383
var faviconDbPath = Path.Combine(Path.GetDirectoryName(placesPath), "favicons.sqlite");
8484
if (File.Exists(faviconDbPath))
8585
{
86-
Main._context.API.StopwatchLogInfo(ClassName, $"Load {bookmarks.Count} favorite icons cost", () =>
86+
Main._context.API.StopwatchLogInfo(ClassName, $"Load {bookmarks.Count} favicons cost", () =>
8787
{
8888
LoadFaviconsFromDb(faviconDbPath, bookmarks);
8989
});
@@ -144,7 +144,7 @@ private void LoadFaviconsFromDb(string dbPath, List<Bookmark> bookmarks)
144144

145145
try
146146
{
147-
// Since some bookmarks may have same favorite icon id, we need to record them to avoid duplicates
147+
// Since some bookmarks may have same favicon id, we need to record them to avoid duplicates
148148
var savedPaths = new ConcurrentDictionary<string, bool>();
149149

150150
// Get favicons based on bookmarks concurrently
@@ -198,7 +198,7 @@ ORDER BY i.width DESC -- Select largest icon available
198198
faviconPath = Path.Combine(_faviconCacheDir, $"firefox_{domain}.png");
199199
}
200200

201-
// Filter out duplicate favorite icons
201+
// Filter out duplicate favicons
202202
if (savedPaths.TryAdd(faviconPath, true))
203203
{
204204
SaveBitmapData(imageData, faviconPath);

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
<system:String x:Key="flowlauncher_plugin_browserbookmark_browserEngine">Browser Engine</system:String>
2828
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage01">If you are not using Chrome, Firefox or Edge, or you are using their portable version, you need to add bookmarks data directory and select correct browser engine to make this plugin work.</system:String>
2929
<system:String x:Key="flowlauncher_plugin_browserbookmark_guideMessage02">For example: Brave's engine is Chromium; and its default bookmarks data location is: "%LOCALAPPDATA%\BraveSoftware\Brave-Browser\UserData". For Firefox engine, the bookmarks directory is the userdata folder contains the places.sqlite file.</system:String>
30-
<system:String x:Key="flowlauncher_plugin_browserbookmark_enable_favorite_icons">Load favicons (can be time consuming during startup)</system:String>
30+
<system:String x:Key="flowlauncher_plugin_browserbookmark_enable_favicons">Load favicons (can be time consuming during startup)</system:String>
3131

3232
</ResourceDictionary>

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Models/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class Settings : BaseModel
88

99
public string BrowserPath { get; set; }
1010

11-
public bool EnableFavoriteIcons { get; set; } = false;
11+
public bool EnableFavicons { get; set; } = false;
1212

1313
public bool LoadChromeBookmark { get; set; } = true;
1414
public bool LoadFirefoxBookmark { get; set; } = true;

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
9898
HorizontalAlignment="Left"
9999
VerticalAlignment="Center"
100-
Content="{DynamicResource flowlauncher_plugin_browserbookmark_enable_favorite_icons}"
101-
IsChecked="{Binding Settings.EnableFavoriteIcons}" />
100+
Content="{DynamicResource flowlauncher_plugin_browserbookmark_enable_favicons}"
101+
IsChecked="{Binding Settings.EnableFavicons}" />
102102
</Grid>
103103
</UserControl>

0 commit comments

Comments
 (0)