Commit graph

995 commits

Author SHA1 Message Date
Jack251970
f756b71207 Catch all exceptions 2026-02-21 20:34:57 +08:00
Jack251970
04a56b556b Use Path.IsPathFullyQualified for absolute path check
Replaced Path.IsPathRooted with Path.IsPathFullyQualified to more accurately determine if a path is truly absolute, preventing misclassification of certain relative paths.
2026-02-21 20:25:10 +08:00
Jack251970
9b0a50376c Clarify exception type in path resolution catch block
Updated the catch block in DataLocation.cs to explicitly use System.Exception instead of Exception when handling path resolution errors. This improves code clarity while maintaining the same error handling logic for ArgumentException, NotSupportedException, and PathTooLongException.
2026-02-21 20:18:09 +08:00
Jack Ye
34a984cd86
Improve code comments
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-21 20:12:49 +08:00
Jack Ye
001101bb81
Improve error handling
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-21 20:11:49 +08:00
Jack251970
9fa4c37109 Remove relative path conversion for plugin settings files
Removed logic that converted absolute paths to relative paths within the ProgramDirectory. Now, plugin settings file paths are always stored as absolute paths. Deleted the ConvertToRelativePathIfPossible method and updated usages accordingly.
2026-01-24 16:07:04 +08:00
Jack251970
d16e43de8a Refactor path utilities to DataLocation from Constant
Move ResolveAbsolutePath and ConvertToRelativePathIfPossible from Constant to DataLocation for better organization. Update all references accordingly; implementations remain unchanged. This improves code clarity around file path management.
2026-01-24 16:03:26 +08:00
copilot-swe-agent[bot]
3de9e535ec Address code review feedback: convert absolute to relative paths for portability
Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
2026-01-24 07:51:22 +00:00
copilot-swe-agent[bot]
d61ec1828f Add relative path resolution support for Python and Node.js executables
Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com>
2026-01-24 07:47:57 +00:00
VictoriousRaptor
8e80c3bde6
Add option to show taskbar when Flow Launcher is opend (#4177)
* Add option to show taskbar when Flow Launcher is invoked

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Fix: Use ABM_ACTIVATE instead of ABM_SETSTATE for temporary taskbar showing

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Remove unnecessary unsafe keyword from ShowTaskbar method

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Fix missing closing braces in Win32Helper.cs

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Change wording from 'invoked' to 'opened' in localization strings

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Show/hide tasking when showing/hiding Flow

* Remove unused APPBARDATA

* Guard HideTaskbar() with state so show/hide stay balanced

* Improve taskbar visibility management in MainViewModel

Moved taskbar show logic to after keyboard layout switch in Show().Ensures consistent taskbar state when invoking or hiding the app.

* Clean code

* Clean code

* Remove blank line

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jack Ye <jack1160210343@gmail.com>
Co-authored-by: Jack251970 <1160210343@qq.com>
2025-12-31 18:05:53 +08:00
Jack Ye
4221797569
Merge pull request #4125 from Flow-Launcher/dialog_jump_ignore_null_handler
Add null checks and improve dialog window handling
2025-12-15 19:51:32 +08:00
VictoriousRaptor
b869eb8d1d Avoid adding unnecessary space and improve unit test 2025-12-07 18:50:54 +08:00
VictoriousRaptor
7d9de4b0d2 Fix index lookup for boundary 2025-12-07 18:16:09 +08:00
Jack251970
5623bf253b Add null checks and improve dialog window handling
Added early null checks for `hwnd` to prevent invalid processing.
Enhanced thread safety by locking `_dialogWindow` updates.
Documented dialog window state handling with comments for clarity.
Handled scenarios for dialog window movement, resizing, hiding,
destruction, and termination. Improved robustness and maintainability.
2025-11-23 18:05:12 +08:00
Jeremy Wu
da4b961686
Merge pull request #3854 from Flow-Launcher/plugin_initialization
Asynchronous Loading & Initialization Plugin Model to Improve Window Startup Speed
2025-10-16 22:08:42 +11:00
Jack Ye
3690042d2c
Fix DialogJump UriFormatException when navigating to root directories (#4052) 2025-10-15 20:12:51 +11:00
Jack Ye
e2abc1b265
Merge branch 'dev' into plugin_initialization 2025-10-15 13:06:14 +08:00
Jack Ye
3d9ef2c63f
Merge pull request #4042 from 01Dri/feature/history_mode
Add "Last opened" history mode & Fix non-result history item save issue
2025-10-15 12:47:45 +08:00
01Dri
9ca7c8431b Revert modifications and returning actions 2025-10-15 00:34:16 -03:00
01Dri
8e96d1a461 HistoryStyle enum values 2025-10-14 22:51:28 -03:00
Jack Ye
adfd5425f0
Merge branch 'dev' into plugin_initialization 2025-10-14 21:53:43 +08:00
Jack251970
f6d5a27e0b Refactor and enhance history management system
Refactored the `History` class to separate query and last opened history into distinct models, introducing `LastOpenedHistoryItem` and deprecating `HistoryItem`. Added a `HistoryStyle` enum and property to allow users to toggle between "Query History" and "Last Opened History." Simplified history display logic and updated the UI with a dropdown for history style selection.

Improved history item display with dynamic action population and relative timestamps. Enhanced performance by optimizing history storage with a maximum limit and streamlined logic for adding/retrieving items. Ensured backward compatibility by migrating legacy history data to the new format.

Updated localization strings, removed deprecated properties, and cleaned up redundant code. Fixed bugs related to inconsistent history actions and edge cases with legacy data.
2025-10-14 20:28:39 +08:00
Jack Ye
592440f2b1
Merge pull request #3982 from Flow-Launcher/squirrel_upgrade
Upgrade Nuget Packages
2025-10-14 19:54:21 +08:00
01Dri
bf2acfec38 feat: code quality 2025-10-11 02:54:29 -03:00
01Dri
6aa35d592e merge dev 2025-10-08 21:38:10 -03:00
01Dri
c051c5cd50 feat: new history logic in MainViewModel 2025-10-08 21:15:10 -03:00
Jack Ye
6213193cda
Merge branch 'dev' into plugin_initialization 2025-10-02 20:22:20 +08:00
01Dri
bc1f9d3734 refactor: renaming executed history to last opened history 2025-10-02 00:09:28 -03:00
01Dri
c0369e6e76 feat: radio button with history query option or history executed option 2025-10-02 00:03:48 -03:00
01Dri
3cc4f13f4d feat: New option to show executed results in settings 2025-10-01 23:05:41 -03:00
Jack251970
c27817eaf0 Fix possible null exception 2025-09-30 21:20:00 +08:00
Jack251970
f239866c68 Use sleep mode listener to fix modern standby sleep mode issue 2025-09-30 21:11:03 +08:00
Jack Ye
b34851bd12
Merge branch 'dev' into squirrel_upgrade 2025-09-28 11:37:18 +08:00
Jack Ye
2d00ab1d3e
Merge pull request #4011 from Flow-Launcher/flow_launcher_localization1
Use Flow.Launcher.Localization to improve code quality
2025-09-28 00:04:14 +08:00
Jack251970
ba7de5d33d Add documents 2025-09-23 21:39:42 +08:00
Jack251970
2770dfde56 Merge branch 'dev' of https://github.com/sstream17/Flow.Launcher into dev 2025-09-23 20:50:45 +08:00
Jack251970
9b2d36b78a Revert "Catch exception"
This reverts commit 49d5cd36df.
2025-09-23 20:48:41 +08:00
Spencer Stream
3bd6906c80 Validate iconPath exists 2025-09-23 07:19:39 -05:00
Jack251970
ac62ebadf0 Add space for code quality 2025-09-23 18:07:15 +08:00
Jack251970
54622d6759 Fix Flow.Launcher.Localization contentHash issue 2025-09-23 17:53:04 +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
Jack251970
49d5cd36df Catch exception 2025-09-23 12:24:44 +08:00
Jack Ye
130033cf4b
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-23 12:22:46 +08:00
Spencer Stream
c293a273ca Fix nitpick on extension string comparison 2025-09-22 21:53:54 -05:00
Spencer Stream
90c73e5e3d Support .url file icons 2025-09-22 19:42:49 -05:00
Spencer Stream
fbc88bb4cd Add ini-parser package to Infrastructure project 2025-09-22 19:42:49 -05:00
Jack Ye
10c79da35c
Merge branch 'dev' into plugin_initialization 2025-09-21 21:37:18 +08:00
Jack251970
6fca1c919e Fix issue in PortableDataLocationInUse 2025-09-21 20:07:18 +08:00
Jack251970
df1a272090 Fix argument null exception 2025-09-21 16:45:25 +08:00