summaryrefslogtreecommitdiffstats
path: root/application/LaunchController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/LaunchController.cpp')
-rw-r--r--application/LaunchController.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/application/LaunchController.cpp b/application/LaunchController.cpp
index 13f453ef..eaeb9b28 100644
--- a/application/LaunchController.cpp
+++ b/application/LaunchController.cpp
@@ -206,7 +206,8 @@ void LaunchController::launchInstance()
}
auto console = qobject_cast<InstanceWindow *>(m_parentWidget);
- if(!console && m_showConsole)
+ auto showConsole = m_instance->settings()->get("ShowConsole").toBool();
+ if(!console && showConsole)
{
MMC->showInstanceWindow(m_instance);
}
@@ -273,6 +274,10 @@ void LaunchController::onSucceeded()
void LaunchController::onFailed(QString reason)
{
+ if(m_instance->settings()->get("ShowConsoleOnError").toBool())
+ {
+ MMC->showInstanceWindow(m_instance, "console");
+ }
emitFailed(reason);
}