Prevent shutdown hotkey from bypassing the state on shutdown setting

This commit is contained in:
bslenul 2022-12-18 15:23:03 +01:00
parent 3f5552d6ac
commit 266a50f7bd
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ DEFINE_HOTKEY("TogglePause", TRANSLATABLE("Hotkeys", "General"), TRANSLATABLE("H
DEFINE_HOTKEY("PowerOff", TRANSLATABLE("Hotkeys", "General"), TRANSLATABLE("Hotkeys", "Power Off System"), DEFINE_HOTKEY("PowerOff", TRANSLATABLE("Hotkeys", "General"), TRANSLATABLE("Hotkeys", "Power Off System"),
[](s32 pressed) { [](s32 pressed) {
if (!pressed) if (!pressed)
Host::RequestSystemShutdown(true, true); Host::RequestSystemShutdown(true, g_settings.save_state_on_exit);
}) })
#endif #endif