Flow.Launcher/Plugins
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
..
Flow.Launcher.Plugin.BrowserBookmark Merge branch 'dev' into dependabot/nuget/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Svg.Skia-3.2.1 2025-09-25 12:41:14 +08:00
Flow.Launcher.Plugin.Calculator Code cleanup & Use Flow.Launcher.Localization to improve code quality (#4009) 2025-09-27 19:18:33 +03:00
Flow.Launcher.Plugin.Explorer Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00
Flow.Launcher.Plugin.PluginIndicator Code cleanup & Use Flow.Launcher.Localization to improve code quality (#4009) 2025-09-27 19:18:33 +03:00
Flow.Launcher.Plugin.PluginsManager Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00
Flow.Launcher.Plugin.ProcessKiller Code cleanup & Use Flow.Launcher.Localization to improve code quality (#4009) 2025-09-27 19:18:33 +03:00
Flow.Launcher.Plugin.Program Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00
Flow.Launcher.Plugin.Shell add removal todo comment 2025-09-30 22:28:41 +10:00
Flow.Launcher.Plugin.Sys Move settings save to post-confirmation for actions 2025-10-02 19:42:24 +08:00
Flow.Launcher.Plugin.Url Code cleanup & Use Flow.Launcher.Localization to improve code quality (#4009) 2025-09-27 19:18:33 +03:00
Flow.Launcher.Plugin.WebSearch Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00
Flow.Launcher.Plugin.WindowsSettings Release 2.0.1 (#3998) 2025-09-21 20:23:00 +08:00