Qt: Add Resume button

This commit is contained in:
Connor McLaughlin
2020-05-23 15:03:00 +10:00
parent e24e4c20e1
commit e6d52ce6de
4 changed files with 30 additions and 3 deletions

View File

@ -227,6 +227,17 @@ void QtHostInterface::resumeSystemFromState(const QString& filename, bool boot_o
HostInterface::ResumeSystemFromState(filename.toStdString().c_str(), boot_on_failure);
}
void QtHostInterface::resumeSystemFromMostRecentState()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "resumeSystemFromMostRecentState");
return;
}
HostInterface::ResumeSystemFromMostRecentState();
}
void QtHostInterface::onDisplayWindowKeyEvent(int key, bool pressed)
{
DebugAssert(isOnWorkerThread());