From 266a50f7bd1f37a5ec72ee5c0f4b15262b3e31ca Mon Sep 17 00:00:00 2001 From: bslenul <33353403+bslenul@users.noreply.github.com> Date: Sun, 18 Dec 2022 15:23:03 +0100 Subject: [PATCH] Prevent shutdown hotkey from bypassing the state on shutdown setting --- src/frontend-common/common_host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/common_host.cpp b/src/frontend-common/common_host.cpp index bc4cf0697..ea89d90fc 100644 --- a/src/frontend-common/common_host.cpp +++ b/src/frontend-common/common_host.cpp @@ -713,7 +713,7 @@ DEFINE_HOTKEY("TogglePause", TRANSLATABLE("Hotkeys", "General"), TRANSLATABLE("H DEFINE_HOTKEY("PowerOff", TRANSLATABLE("Hotkeys", "General"), TRANSLATABLE("Hotkeys", "Power Off System"), [](s32 pressed) { if (!pressed) - Host::RequestSystemShutdown(true, true); + Host::RequestSystemShutdown(true, g_settings.save_state_on_exit); }) #endif