Qt: Implement Batch flag (-b)

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

No files matched your search

+1 -1
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