mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
Prevent shutdown hotkey from bypassing the state on shutdown setting
This commit is contained in:
parent
3f5552d6ac
commit
266a50f7bd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue