Commit graph

57 commits

Author SHA1 Message Date
Jeremy Wu
e1cc50c579 Merge remote-tracking branch 'origin/master' into resolve_conflicts 2025-08-31 17:53:21 +10:00
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
Jeremy Wu
7ae91b1af3
Release 1.20.1 | Plugin 4.6.0 (#3706) 2025-06-14 13:45:30 +03:00
Jack Ye
1415df2003
Merge pull request #3674 from Flow-Launcher/clear_pool
Cache connection and clear pool after all operations to avoid ObjectDisposedException
2025-06-13 21:13:46 +08:00
Jack251970
b6cca4547c Fix typos 2025-06-12 16:27:48 +08:00
Jack251970
6f516ee120 Change code comments 2025-06-11 21:14:05 +08:00
Jack251970
d7b8f85f4a Use FaviconHelper 2025-06-08 12:35:39 +08:00
Jack251970
2ed32b318d Do not use pooling so that we do not need to clear pool 2025-06-08 12:17:47 +08:00
Jack251970
c323646b1a Use AddRange 2025-06-08 12:09:07 +08:00
Jack251970
c8e82cbd09 Cache connection and clear pool after all operations to avoid ObjectDisposedException 2025-06-08 00:14:31 +08:00
Jack251970
f59e2399b9 Add error handling for directory operation 2025-06-06 13:25:43 +08:00
Jack251970
57470a9799 Fix IsRelative logic. 2025-06-06 13:21:51 +08:00
Jack251970
33a5ca845a Support Msix FireFox bookmarks 2025-06-06 13:12:40 +08:00
Jack251970
79d35bba5f Check index before returning PlacesPath 2025-06-05 22:54:34 +08:00
Jack251970
1697544cb6 Add example code comments 2025-06-05 22:41:21 +08:00
Jack251970
94b8a66db7 Rename to favicon 2025-06-05 10:21:24 +08:00
Jack251970
49a42dd1b4 Improve code quality 2025-06-05 01:31:06 +08:00
Jack251970
f717376a17 Remove dulplicated comments 2025-06-05 01:30:26 +08:00
Jack251970
8bb2b50a4c Use concurrent way to load favorite icons for firefox 2025-06-05 01:13:48 +08:00
Jack251970
0ec38faf1d Add code comments & Improve code quality 2025-06-05 01:12:12 +08:00
Jack251970
72bd4c202a Info favorite icons cost 2025-06-05 00:27:03 +08:00
Jack251970
a761ec880b Check file exists 2025-06-04 23:31:18 +08:00
Jack251970
6d5b95c616 Improve code comments 2025-06-04 23:31:10 +08:00
Jack251970
b68b299cd4 Support enable favorite icons for firefox bookmarks 2025-06-04 23:26:32 +08:00
Jack251970
150ea84191 Make sure temporary files deleted 2025-04-09 17:27:34 +08:00
Jack251970
ba0205f471 Force save favicon icons & Fix svg save issue 2025-04-09 17:05:29 +08:00
Jack251970
82f67884ef Support svg image file loading 2025-04-09 16:15:37 +08:00
Jack251970
a845e68c98 Use plugin cache directory 2025-04-02 22:39:30 +08:00
Jack251970
0430eea2fd Use api functions instead of project reference for code quality 2025-04-02 22:25:55 +08:00
DB p
3387c2aba8 Remove svg related nuget and codes 2025-03-25 13:51:39 +09:00
DB p
4e8272ffbc - Removed "Remove Cache" button
- Changed nuget for SVG
- Changed SVG code
2025-03-21 01:42:26 +09:00
DB p
dfc9d5b84f - Add SVG convert for firefox
- Add remove cache UI
2025-03-20 19:11:15 +09:00
Yusyuriv
a837e8e197
Close bookmarks db connection before trying to delete the file 2025-03-20 14:47:50 +06:00
Yusyuriv
92ef2c76c7
Reduce nesting 2025-03-20 14:43:38 +06:00
Jack251970
0c162b1cbe Fix call position 2025-03-20 16:24:41 +08:00
Jack251970
2b08ad65a0 Only clear pool for one connection 2025-03-20 16:21:15 +08:00
Jack251970
a87211bfb4 Fix sqlite file lock issue & Add static 2025-03-20 16:11:22 +08:00
Jack251970
fab983396f Merge branch '250320BookmarkFavicon' of https://github.com/onesounds/Flow.Launcher into 250320BookmarkFavicon 2025-03-20 16:03:59 +08:00
Jack251970
977a8f8c47 Log exception when deleting failed 2025-03-20 16:03:41 +08:00
Yusyuriv
d2c185ee92
Remove unnecessary dependencies 2025-03-20 14:03:08 +06:00
DB p
d05389c229 Added SVG for firefox 2025-03-20 15:58:30 +09:00
DB p
5481a6aa43 Add local favicon load 2025-03-20 05:04:19 +09:00
Yusyuriv
7393b27976
Fix a typo in variable name in FirefoxBookmarkLoader.cs 2024-04-16 13:44:33 +06:00
Yusyuriv
6373778b3a
Fix Firefox bookmark SQL query formatting 2024-04-16 13:16:52 +06:00
Yusyuriv
f6d25aa94c
Code cleanup: Flow.Launcher.Plugin.BrowserBookmark 2024-04-16 13:00:19 +06:00
Marcin Badurowicz
bdc3bfc6b8 remove unused properties from connection string 2023-09-10 23:41:49 +02:00
Marcin Badurowicz
802457f713 switch to different nuget 2023-09-10 23:41:39 +02:00