From 3780a25d27ae5c803ce9ed075928fff365104987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 4 Nov 2016 00:19:32 +0100 Subject: NOISSUE add an option to show console on error and default other options to false --- application/LaunchController.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/LaunchController.cpp') 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(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); } -- cgit v1.2.3