Commit graph

300 commits

Author SHA1 Message Date
Jeremy Wu
5ef6a2b688
New Crowdin updates (#4293) 2026-03-09 04:44:49 +02:00
Jeremy Wu
918eb0f4a9
New Crowdin updates (#4181) 2026-02-21 12:51:21 +02:00
Jack251970
a99b8399fe Improve code quality 2026-02-21 14:51:20 +08:00
DB P
7e9a626891 style: fix indentation and tab spacing 2026-02-20 17:40:27 +09:00
DB P
cecd90e675 Refactor: Improve power action logic and property setter
- Add braces for better readability in shutdown/reboot logic (Main.cs).
- Prevent redundant OnPropertyChanged calls in _skipPowerActionConfirmation setter (Settings.cs).
2026-02-20 17:34:37 +09:00
DB P
2d7d025682 Add Skip logic in command 2026-02-20 17:18:21 +09:00
DB P
12fc597b56 Add Checkbox for Skip Confirm 2026-02-20 17:06:31 +09:00
Jack251970
d4f472a64e Update AdjustTokenPrivileges PInvoke usage
Refactored the AdjustTokenPrivileges call to use null for the previous state and an out variable for the return length, improving compatibility with the PInvoke signature and aligning with recommended usage.
2026-02-05 20:28:37 +08:00
dependabot[bot]
97d7eab1a7
Bump Microsoft.Windows.CsWin32 from 0.3.205 to 0.3.269
---
updated-dependencies:
- dependency-name: Microsoft.Windows.CsWin32
  dependency-version: 0.3.269
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.Windows.CsWin32
  dependency-version: 0.3.269
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Microsoft.Windows.CsWin32
  dependency-version: 0.3.269
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-04 22:46:23 +00:00
Jeremy Wu
533a58d083
New Crowdin updates (#4051) 2025-11-20 18:26:31 +08:00
Jeremy Wu
02a29c6af4
New Crowdin updates (#4002) 2025-10-14 12:14:37 +03:00
Jack Ye
5b0a30774e
Fix code comment typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-02 19:45:08 +08:00
Jack251970
d08ee30a7a Refactor plugin actions to simplify logic
Removed logoff operation logic and associated return statement.
Eliminated return statement after recycle bin error handling.
Removed async plugin data reload and success message logic.
Simplified theme selector query handling by removing `return false`.
These changes streamline the code and improve maintainability.
2025-10-02 19:43:31 +08:00
Jack251970
167570559f Move settings save to post-confirmation for actions
Previously, `Context.API.SaveAppAllSettings()` was called unconditionally before user confirmation for shutdown, restart, and advanced restart actions. This change ensures settings are only saved if the user confirms the action by clicking "Yes" in the confirmation dialog.

For all three functionalities:
- Moved the settings save call inside the `if (result == MessageBoxResult.Yes)` block.
- Retained the existing logic for executing the respective system commands, with checks for `EnableShutdownPrivilege()` to determine whether to use `PInvoke.ExitWindowsEx` or the `shutdown` command.

This change prevents unnecessary settings saves when the user cancels the action.
2025-10-02 19:42:24 +08:00
Jack251970
e376da4482 Save settings before shutdown/restart to prevent data loss
Added a call to `Context.API.SaveAppAllSettings()` before executing system shutdown, restart, or advanced restart operations. This ensures that any unsaved settings are persisted, reducing the risk of data loss during these actions.
2025-10-02 19:29:46 +08:00
Jack Ye
5b6ea73513
Code cleanup & Use Flow.Launcher.Localization to improve code quality (#4009)
* Use Flow.Launcher.Localization to improve code quality

* Code cleanup

* Improve code quality

* Improve code quality

* Use internal static Context & Improve code quality

* Use Flow.Launcher.Localization to improve code quality

* Code cleanup

* Use Flow.Launcher.Localization to improve code quality

* Improve code quality

* Improve code quality

* Use Flow.Launcher.Localization to improve code quality

* Fix logic issue

* Fix the variable name typo

* Fix redundant boolean cast and ensure consistent default value handling

* Use Flow.Launcher.Localization to improve code quality

* Revert namespace styles

* Fix indent format

* Revert namespace style

* Fix indent format

* Fix namespace style

* Fix indent format

* Fix indent format
2025-09-27 19:18:33 +03:00
Jeremy Wu
d7e1ad73cc
New Crowdin updates (#3948) 2025-09-21 14:36:35 +03:00
Jack251970
29b675b26a Upgrade nuget packages 2025-09-13 14:14:59 +08:00
Jeremy Wu
4fe8d8c233
New Crowdin updates (#3940) 2025-09-06 06:34:23 +03:00
Jeremy Wu
ca01d15dde
New Crowdin updates (#3824)
* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (German)
[ci skip]

* New translations en.xaml (French)
[ci skip]

* New translations en.xaml (Arabic)
[ci skip]

* New translations en.xaml (Czech)
[ci skip]

* New translations en.xaml (Danish)
[ci skip]

* New translations en.xaml (Hebrew)
[ci skip]

* New translations en.xaml (Italian)
[ci skip]

* New translations en.xaml (Japanese)
[ci skip]

* New translations en.xaml (Korean)
[ci skip]

* New translations en.xaml (Dutch)
[ci skip]

* New translations en.xaml (Polish)
[ci skip]

* New translations en.xaml (Portuguese)
[ci skip]

* New translations en.xaml (Russian)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (Turkish)
[ci skip]

* New translations en.xaml (Ukrainian)
[ci skip]

* New translations en.xaml (Chinese Simplified)
[ci skip]

* New translations en.xaml (Chinese Traditional)
[ci skip]

* New translations en.xaml (Vietnamese)
[ci skip]

* New translations en.xaml (Portuguese, Brazilian)
[ci skip]

* New translations en.xaml (Norwegian Bokmal)
[ci skip]

* New translations en.xaml (Serbian (Latin))
[ci skip]

* New translations en.xaml (Spanish (Modern))
[ci skip]

* New translations en.xaml (Spanish, Latin America)
[ci skip]

* New translations en.xaml (Slovak)
[ci skip]

* New translations en.xaml (French)
[ci skip]
2025-08-31 13:05:43 +03:00
Jack Ye
8142ef1dee
Merge branch 'dev' into nuget_dependency 2025-07-23 10:47:19 +08:00
Jack Ye
4652392c71
Update translations
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-20 11:29:15 +08:00
Jack251970
b6ecfdcf63 Remove project reference in Sys plugin to Flow.Launcher.Infrastructure 2025-07-20 09:58:30 +08:00
Jack251970
96e6882ec1 Improve string resource 2025-07-20 09:50:07 +08:00
Jack251970
365dd5ee17 Use translation for constant strings 2025-07-20 09:42:32 +08:00
Jack251970
9f63291fda Improve setting dialog command 2025-07-20 09:35:29 +08:00
Jack251970
7af3c5febf Upgrade NuGet dependency 2025-07-19 20:26:33 +08:00
Hongtao Zhang
e96a4cf59d Merge remote-tracking branch 'origin/dev' into net9
# Conflicts:
#	Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj
#	Flow.Launcher/Flow.Launcher.csproj
2025-07-15 15:52:34 -07:00
Jack251970
539a852363 Improve logic 2025-07-15 21:59:40 +08:00
Jack251970
aece803905 Simplify logic 2025-07-15 21:50:41 +08:00
WayneFerdon
a34b8f2630 [Plugin.Sys Enhancement] Support returning all usable commands while query is empty; ChangeQuery by ThemeSelector Action with ActionKeyword at the front as well 2025-07-15 21:22:19 +08:00
Jeremy Wu
3159e67c9d
New Crowdin updates (#3807) 2025-07-13 15:56:34 +03:00
Jeremy Wu
b440aaab37
New Crowdin updates (#3730) 2025-07-03 15:01:52 +03:00
Jeremy Wu
db97288282
New Crowdin updates (#3574) 2025-06-03 06:52:56 +03:00
Jeremy Wu
2b9529d2f9 set all of plugins' version to default 1.0.0 2025-05-20 09:06:11 +00:00
Jack251970
8325963047 Fix size changed width issue 2025-05-14 14:23:35 +08:00
Jeremy Wu
1775c0fd26
New Crowdin updates (#3430) 2025-05-11 13:27:09 +03:00
Jack251970
c382732f97 Improve windows exiting 2025-04-15 12:49:09 +08:00
Jack251970
f71e7461c6 Remove unused project reference 2025-04-09 12:38:52 +08:00
Jack251970
9c07989edf Improve code quality 2025-04-09 12:14:07 +08:00
Jeremy Wu
9bc27a4ecd
New Crowdin updates (#3348) 2025-04-08 21:41:15 +08:00
Jack251970
a3c7be9559 Handle results from SetCurrentTheme 2025-04-08 16:49:29 +08:00
Jack251970
ecd019dd6b Move ThemeData class to SharedModels 2025-04-08 15:56:54 +08:00
Jack251970
2e885ea5cc Remove useless variable 2025-04-04 20:45:24 +08:00
Jack251970
9b9704e938 Improve settings panel theme page & theme selector 2025-04-04 20:11:01 +08:00
Jack251970
cc1e6dd7ee Fix theme select initialization issue 2025-03-31 21:53:33 +08:00
Jack Ye
be966b7a9e
Merge pull request #3272 from Jack251970/plugin_settings_cache_path
Improve Plugin Metadata & Path Management
2025-03-30 08:27:05 +08:00
DB p
c2d1b30240 Add and adjust glyph icon for sys plugin 2025-03-29 06:05:23 +09:00
Jack Ye
c87b731efd
Merge branch 'dev' into plugin_settings_cache_path 2025-03-21 07:31:12 +08:00
Jack Ye
a6812cfd9f
Merge branch 'dev' into settings_panel 2025-03-20 20:33:31 +08:00