Qt: Implement Batch flag (-b)

This commit is contained in:
spycrab
2018-04-29 19:13:40 +02:00
parent 1c9b64ff02
commit 2a837a82d4
4 changed files with 14 additions and 1 deletions

View File

@ -526,7 +526,7 @@ void MainWindow::OnStopComplete()
m_stop_requested = false;
HideRenderWidget();
if (m_exit_requested)
if (m_exit_requested || Settings::Instance().IsBatchModeEnabled())
QGuiApplication::instance()->quit();
// If the current emulation prevented the booting of another, do that now