Merge pull request #2933 from bslenul/shutdown-hk-state

Prevent shutdown hotkey from bypassing the state on shutdown setting
This commit is contained in:
Connor McLaughlin 2022-12-19 17:17:10 +10:00 committed by GitHub
commit f85464805a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"),
[](s32 pressed) {
if (!pressed)
Host::RequestSystemShutdown(true, true);
Host::RequestSystemShutdown(true, g_settings.save_state_on_exit);
})
#endif