Commit graph

5 commits

Author SHA1 Message Date
Jack Ye
7084d5a558
Merge branch 'dev' into Fix-'100%-CPU'-BrowserBookmark-issue 2025-07-27 13:04:50 +01:00
Jack251970
19f37f4c3a Add code comments 2025-07-14 09:01:59 +08:00
dcog989
78b4c7db85 Fix BrowserBookmark '100% CPU' issue
# Fix BrowserBookmark plugin locking threads at 100% CPU

The following files were modified to implement this fix:

1. /Flow.Launcher.Plugin.BrowserBookmark.csproj
    - packages SkiaSharp and Svg.Skia added to output WEBP

2. /Helper/FaviconHelper.cs
    - new method, TryConvertToWebp, added to take any image data and encode to WEBP

3. /FirefoxBookmarkLoader.cs
    - LoadFaviconsFromDb to use the new helper which ensures only safe WEBP files are used by the UI, which resolves the CPU-locking. It was GZIPped SVGs that were causing the thread / CPU lock.
2025-07-14 00:43:39 +01:00
Jack251970
1b05643b64 Use Flow.Launcher.Localization to improve code quality 2025-06-23 12:38:27 +08:00
Jack251970
d7b8f85f4a Use FaviconHelper 2025-06-08 12:35:39 +08:00