Qt: Add shutdown without saving menu option

This commit is contained in:
Connor McLaughlin committed 2021-01-09 00:23:02 +10:00
1 parent 6a04803502
commit b0398f5aa7
10 files changed
+43 -5

No files matched your search

@@ -174,9 +174,6 @@ void CommonHostInterface::PowerOffSystem()
if (System::IsShutdown())
return;
if (g_settings.save_state_on_exit)
SaveResumeSaveState();
HostInterface::PowerOffSystem();
if (InBatchMode())
@@ -1489,6 +1486,9 @@ void CommonHostInterface::RegisterGeneralHotkeys()
}
}
if (g_settings.save_state_on_exit)
SaveResumeSaveState();
PowerOffSystem();
}
});