mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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. |
||
|---|---|---|
| .. | ||
| Flow.Launcher.Plugin.BrowserBookmark | ||
| Flow.Launcher.Plugin.Calculator | ||
| Flow.Launcher.Plugin.Explorer | ||
| Flow.Launcher.Plugin.PluginIndicator | ||
| Flow.Launcher.Plugin.PluginsManager | ||
| Flow.Launcher.Plugin.ProcessKiller | ||
| Flow.Launcher.Plugin.Program | ||
| Flow.Launcher.Plugin.Shell | ||
| Flow.Launcher.Plugin.Sys | ||
| Flow.Launcher.Plugin.Url | ||
| Flow.Launcher.Plugin.WebSearch | ||
| Flow.Launcher.Plugin.WindowsSettings | ||