Qt: Add screenshot button

This commit is contained in:
Connor McLaughlin
2020-03-16 00:06:39 +10:00
parent ffb760c79d
commit 282998d0bb
4 changed files with 24 additions and 0 deletions

View File

@ -588,6 +588,17 @@ void QtHostInterface::stopDumpingAudio()
StopDumpingAudio();
}
void QtHostInterface::saveScreenshot()
{
if (!isOnWorkerThread())
{
QMetaObject::invokeMethod(this, "saveScreenshot");
return;
}
SaveScreenshot(nullptr, true, true);
}
void QtHostInterface::enableBackgroundControllerPolling()
{
if (!isOnWorkerThread())