Qt: Add shutdown without saving menu option
This commit is contained in:
@ -808,6 +808,20 @@ void QtHostInterface::powerOffSystem()
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_settings.save_state_on_exit)
|
||||
SaveResumeSaveState();
|
||||
|
||||
PowerOffSystem();
|
||||
}
|
||||
|
||||
void QtHostInterface::powerOffSystemWithoutSaving()
|
||||
{
|
||||
if (!isOnWorkerThread())
|
||||
{
|
||||
QMetaObject::invokeMethod(this, "powerOffSystemWithoutSaving", Qt::QueuedConnection);
|
||||
return;
|
||||
}
|
||||
|
||||
PowerOffSystem();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user