CommonHostInterface: Move save state on exit logic to base class

This commit is contained in:
Connor McLaughlin committed 2021-03-03 01:14:05 +10:00
1 parent 7645ca3836
commit c58227752d
9 files changed
+25 -35

No files matched your search

+2 -5
View File
@@ -812,10 +812,7 @@ void QtHostInterface::powerOffSystem()
return;
}
if (g_settings.save_state_on_exit)
SaveResumeSaveState();
PowerOffSystem();
PowerOffSystem(ShouldSaveResumeState());
}
void QtHostInterface::powerOffSystemWithoutSaving()
@@ -827,7 +824,7 @@ void QtHostInterface::powerOffSystemWithoutSaving()
return;
}
PowerOffSystem();
PowerOffSystem(false);
}
void QtHostInterface::synchronousPowerOffSystem()