Jack251970
dccdd95045
Improve code comments
2025-10-16 21:33:45 +08:00
Jack251970
e3306ecfe8
Add conditional check for plugin hotkey updates
...
Previously, `UpdatePluginHotkeyInfoTranslations` was called for all plugins, even those without hotkey support. This commit adds a conditional check to ensure the method is only invoked for plugins implementing the `IPluginHotkey` interface.
Additionally, comments were added to clarify the purpose of the hotkey update logic. These changes improve robustness by preventing unnecessary or invalid calls for non-hotkey plugins.
2025-10-16 20:36:55 +08:00
Jack251970
79b0385336
Refactor plugin hotkey and action keyword management
...
Refactored hotkey management to improve thread safety by replacing `Dictionary` with `ConcurrentDictionary` and introducing a lock for updates. Added new methods for hotkey initialization, validation, and translation updates. Enhanced plugin initialization by integrating hotkey checks and removing redundant calls.
Refactored action keyword management with new methods for adding and removing keywords, ensuring thread safety with `TryAdd`, `AddOrUpdate`, and `TryRemove`. Introduced the `PluginHotkeyChangedEvent` class to encapsulate hotkey change events.
Improved thread safety and performance by using thread-safe collections and LINQ. Cleaned up code by removing deprecated methods, redundant comments, and outdated TODOs. Fixed concurrency issues and ensured consistent updates to plugin metadata and hotkey information.
2025-10-16 20:30:17 +08:00
Jack Ye
8e71130831
Merge branch 'dev' into rename-file
2025-10-16 20:07:02 +08:00
Jack Ye
5c4c80259d
Merge branch 'dev' into rename-file
2025-10-05 19:35:26 +08:00
Jack Ye
a2d12eb225
Merge branch 'dev' into plugin_initialization
2025-10-05 19:25:01 +08:00
Jack Ye
5ae159de5b
Move to iNKORE.UI.WPF.Modern UI Framework ( #3593 )
2025-10-05 13:44:40 +03:00
Jack251970
5ed94c8abc
Resolve conflicts
2025-10-02 20:25:45 +08:00
Jack Ye
6213193cda
Merge branch 'dev' into plugin_initialization
2025-10-02 20:22:20 +08:00
Jack Ye
83c2edf7c8
Merge branch 'dev' into rename-file
2025-09-28 11:40:42 +08:00
Jack251970
0e366a6269
Use PublicApi.Instance instead of private one
2025-09-23 17:40:54 +08:00
Jack251970
7350c1d4d5
Use Flow.Launcher.Localization to improve code quality
2025-09-23 17:14:30 +08:00
Jack Ye
3116f3d363
Merge branch 'dev' into plugin_initialization
2025-09-21 13:22:31 +08:00
Jack Ye
542d1eb3be
Merge branch 'dev' into rename-file
2025-09-21 13:15:44 +08:00
Jack251970
0f6245a072
Handle exceptions inside ChangeLanguageAsync to avoid unobserved task crashes
2025-09-18 18:18:02 +08:00
Jack251970
86581e6a00
Add disposable for internalization
2025-09-18 18:17:27 +08:00
Jack251970
330e6c09e7
Add language change lock
2025-09-18 18:07:18 +08:00
Jack251970
6c695f09e7
Use clear function
2025-09-18 17:55:06 +08:00
Jack251970
b05c2c1e1a
Remove old dictionaries references to fix possible memory leak
2025-09-18 16:25:21 +08:00
Jack Ye
cf8096f276
Merge branch 'dev' into plugin_initialization
2025-09-05 20:35:05 +08:00
Jack Ye
9733da7205
Merge branch 'dev' into rename-file
2025-09-05 19:52:26 +08:00
Jeremy Wu
e1cc50c579
Merge remote-tracking branch 'origin/master' into resolve_conflicts
2025-08-31 17:53:21 +10:00
Jack Ye
11dbce65c4
Merge branch 'dev' into rename-file
2025-08-30 16:29:30 +08:00
Jeremy Wu
a9b5b3aa38
Merge pull request #3860 from Flow-Launcher/taooceros-patch-1
...
Add Srpski (Cyrillic)
2025-08-20 18:31:51 +10:00
Jack251970
d8f8de2abe
Use Српски instead of Српска
2025-08-16 11:41:25 +08:00
Kevin Zhang
7664944ff2
Apply suggestion from @Copilot
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-28 16:27:47 -05:00
Jack Ye
d8d42b836d
Merge branch 'dev' into rename-file
2025-07-27 13:09:16 +01:00
Jack Ye
912d5dda69
Merge branch 'dev' into rename-file
2025-07-24 12:02:11 +01:00
Kevin Zhang
16603697a5
Add Srpski (Cyrillic)
2025-07-22 22:48:19 -05:00
Jack251970
d4e672d630
Add support to update translation for one plugin
2025-07-21 13:55:47 +08:00
Jack Ye
71eaf2d789
Merge branch 'dev' into code_quality
2025-07-21 10:23:08 +08:00
Jack Ye
45ed9faf29
Merge branch 'dev' into rename-file
2025-07-20 20:24:33 +08:00
Jack Ye
ed0524d207
Merge branch 'dev' into code_quality
2025-07-20 20:02:51 +08:00
Jack251970
fea899d09a
No need to get lower for language code
2025-07-20 17:37:12 +08:00
Jack251970
f77f14b0ee
Improve code quality
2025-07-20 17:35:07 +08:00
Jack251970
ac7da2d2d6
Do not check if the language directory contains default language file
2025-07-20 17:26:14 +08:00
Jack251970
5e8acf7d74
Use OrdinalIgnoreCase
2025-07-20 15:29:27 +08:00
Jack251970
634bdc5bd6
Do not check Flow Launcher default language file since it is binary embedded
2025-07-20 15:26:07 +08:00
Jack251970
2ee53dfbf7
Initialize language before portable clean up since it needs translations
2025-07-20 15:20:18 +08:00
Jack251970
0682e9bed1
Improve code quality for public api
2025-07-20 11:38:44 +08:00
Jack Ye
fc6ff5a7a0
Merge branch 'dev' into code_quality
2025-07-14 09:09:09 +08:00
Jeremy Wu
2e0dd1cfa1
Release 1.20.2 | Plugin 4.7.0 ( #3820 )
2025-07-13 17:18:34 +03:00
Jack251970
d3f5274b24
Make GetPluginsForInterface private & Code quality
2025-07-03 20:45:20 +08:00
Jack251970
2a52c28bdd
Store plugin hotkey info
2025-07-03 11:18:32 +08:00
Jack251970
2625f6fa41
Make GetPluginsForInterface private
2025-07-03 10:26:12 +08:00
Jack251970
9be2ef0924
Remove unused class
2025-06-23 13:03:45 +08:00
Jack Ye
43c74f04ac
Merge branch 'dev' into winform_language_issue
2025-06-16 21:10:19 +08:00
Jeremy Wu
7ae91b1af3
Release 1.20.1 | Plugin 4.6.0 ( #3706 )
2025-06-14 13:45:30 +03:00
Jack Ye
a02a236ca4
Merge branch 'dev' into explorer_plugin_code_quality
2025-06-06 21:30:54 +08:00
DB P
c6ed0bdc2a
Adjust window border style for blur themes and update border brush resource
2025-06-02 18:01:09 +09:00