summaryrefslogtreecommitdiffstats
path: root/application/LaunchController.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-11-04 00:19:32 +0100
committerPetr Mrázek <peterix@gmail.com>2016-11-04 00:19:32 +0100
commit3780a25d27ae5c803ce9ed075928fff365104987 (patch)
treef59f3c2bbb77b7a1bdfecb408bafa2f793030673 /application/LaunchController.cpp
parent6ebf6e7785da79f7f3eb28176951d0e9d22a20e8 (diff)
downloadMultiMC-3780a25d27ae5c803ce9ed075928fff365104987.tar
MultiMC-3780a25d27ae5c803ce9ed075928fff365104987.tar.gz
MultiMC-3780a25d27ae5c803ce9ed075928fff365104987.tar.lz
MultiMC-3780a25d27ae5c803ce9ed075928fff365104987.tar.xz
MultiMC-3780a25d27ae5c803ce9ed075928fff365104987.zip
NOISSUE add an option to show console on error and default other options to false
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);
}