Commit graph

62 commits

Author SHA1 Message Date
Jack251970
f632a4b773 Add caching to QueryAsync and integrate cache reset logic
Introduced a MemoryCache to improve QueryAsync performance by
caching query results, reducing redundant computations. Added
a ResetCache method to reinitialize the cache when settings
are updated. Integrated cache reset calls into settings
property setters to ensure consistency.

Refactored query logic to leverage MemoryCache.GetOrCreateAsync
for streamlined caching. Removed redundant code and debug
logging for improved readability and maintainability. Ensured
thread safety with proper locking mechanisms. Simplified and
consolidated caching logic for better maintainability.
2025-10-26 20:59:29 +08:00
Jack251970
7f5efc5ca1 Refactor caching and improve QueryAsync method
Removed the `ResetCache` method and its associated calls to streamline caching management and improve performance. Refactored the `QueryAsync` method for better thread safety, synchronization, and exception handling. Simplified UWP and Win32 program filtering logic and removed redundant code. Eliminated manual cache disposal and reset logic, favoring a more efficient and automated caching mechanism. These changes enhance maintainability, responsiveness, and overall plugin performance.
2025-10-26 20:40:37 +08:00
Jack Ye
54c949b3ca
Merge pull request #3539 from Flow-Launcher/program_plugin_delete_logic
Improve Program plugin delete button logic
2025-05-14 14:40:08 +08:00
Jack251970
8325963047 Fix size changed width issue 2025-05-14 14:23:35 +08:00
Jack251970
da77085508 Fix logic & Improve code quality 2025-05-14 11:37:55 +08:00
Jack251970
204d1d285a Improve string keys 2025-05-13 13:04:26 +08:00
Jack251970
a099935169 Fix message 2025-05-13 13:03:04 +08:00
Jack251970
284729afb5 Improve message noticification 2025-05-13 13:01:24 +08:00
Jack251970
e0ac6d5fee Improve Program plugin delete button logic 2025-05-13 12:49:35 +08:00
Jack251970
1d16b30b64 Suppress async void 2025-04-15 13:22:22 +08:00
Jack251970
7da2884e84 Add locks for win32s & uwps 2025-04-08 16:29:03 +08:00
Jack251970
0496d6c04a Use api functions for Program plugin 2025-04-01 14:21:29 +08:00
Jack251970
097633e9e0 Fix typos 2025-02-21 09:29:43 +08:00
Jack251970
7ccfbcae7f Add hide dulplicated windows apps into settings panel 2025-02-20 23:15:12 +08:00
Jack251970
534a1117aa Use public api to call ShowMsgBox functions & remove useless Core project import 2024-11-27 12:21:34 +08:00
Jack251970
897fd7aaba Replace Flow.Launcher.Core.MessageBoxType & MessageBoxImage with System.Windows.MessageBoxButton & MessageBoxImage
Remove useless warning file
2024-11-26 21:31:13 +08:00
Jack251970
b30cc4fc38 Replace System.Windows.MessageBox with MessageBoxEx 2024-11-25 10:38:43 +08:00
Yusyuriv
87542e4385
Add option to hide uninstallers from results 2024-05-26 16:01:29 +06:00
Hongtao Zhang
83553244d7 use memorypack instead of binaryformatter 2023-11-11 18:10:06 -06:00
Vic
b123c09c6c Remove unused settings 2023-04-24 21:10:07 +08:00
VictoriousRaptor
2d32b33eb0
Merge branch 'dev' into DisablePATHByDefault 2022-12-21 12:57:19 +08:00
Vic
d3bae93a47 Revert "Disable PATH by default" 2022-12-18 13:35:38 +08:00
Vic
13eba18ac5 Disable PATH programs by default 2022-12-18 13:28:30 +08:00
Vic
bf91bd2492 Fix double click on header 2022-12-17 22:27:36 +08:00
Vic
1d77d45fe2 Add an option to enable/dsiable UWP indexing 2022-12-17 22:20:49 +08:00
Vic
5373cd3736 Disable PATH programs by default 2022-12-17 21:29:25 +08:00
Vic
fe66cad624 Merge remote-tracking branch 'upstream/dev' into FixProgramSource 2022-12-12 18:32:51 +08:00
DB p
8498883cd9 - Add BoolToTranslation Logic by Style in Program
- Add Responsive Width for Removing horizon scrollbar
2022-12-09 10:15:14 +09:00
Vic
1990226c71 Fix item can't be unselected after editing Location 2022-12-07 00:35:41 +08:00
Vic
66dee47edc Refactor AddProgramSource dialog 2022-12-06 20:34:40 +08:00
Vic
2ea310ce37 Merge remote-tracking branch 'upstream/dev' into FixProgramUID 2022-11-14 15:25:40 +08:00
Vic
0079a882be minor refactor 2022-11-04 14:57:57 +08:00
Vic
ff430c71d3 Fix duplicate program sources when editing 2022-11-04 14:15:42 +08:00
Vic
0b247db1b2 minor changes 2022-10-30 01:27:41 +08:00
Vic
cc7d2bc855 Fix location setter and uid case 2022-10-28 20:00:38 +08:00
Vic
874383bd07 bugfix and refactor
1. Fix issues with uid.
2. Implement #1486.
2022-10-25 17:39:01 +08:00
Vic
2f9b19ddfc Fix 1356 2022-10-25 15:27:47 +08:00
Vic
184aa57db9 Merge branch 'FixProgramPluginSettings' into FixProgramUID 2022-10-25 14:20:01 +08:00
Vic
cb295bbd90 Refactor 2022-10-24 23:26:41 +08:00
Vic
31453e5942 Review update 2022-10-24 14:31:19 +08:00
Vic
8a488ad88e CA1829 2022-10-20 17:22:31 +08:00
Vic
cc1e32333c Remove unnecessary Count() 2022-10-20 17:21:36 +08:00
Vic
7832ab6898 Remove ProgramSource() 2022-10-20 17:15:16 +08:00
Vic
81d295498b Move ProgramSource definition 2022-10-20 16:15:56 +08:00
Vic
bcd2b8d658 bugfix 2022-10-18 20:25:43 +08:00
Vic
569f69a270 bugfix 2022-10-18 20:07:43 +08:00
Vic
dcec3611de Fix button text issue 2022-10-18 19:28:12 +08:00
Vic
c56c343ed6 Add Checkbox to edit program source window
1. Add Checkbox to edit program source window
2. Double click item to edit
2022-10-18 19:21:10 +08:00
Vic
63912aaa62 Add PATH environment variable to program source 2022-10-15 21:24:02 +08:00
Oren Nachman
3648126854 Revert JSON Null change + fix more warnings
See comment inline re:JSON null
2022-08-08 17:35:38 -07:00