Qt: Add shutdown without saving menu option
This commit is contained in:
1 parent
6a04803502
commit
b0398f5aa7
10 files changed
+43
-5
No files matched your search
@@ -673,7 +673,11 @@ void SDLHostInterface::DrawMainMenuBar()
|
||||
|
||||
if (ImGui::MenuItem("Power Off", nullptr, false, system_enabled))
|
||||
{
|
||||
RunLater([this]() { DestroySystem(); });
|
||||
RunLater([this]() {
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
PowerOffSystem();
|
||||
});
|
||||
ClearImGuiFocus();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user