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/pages/global/MultiMCPage.cpp | 2 ++ application/pages/global/MultiMCPage.ui | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'application/pages/global') diff --git a/application/pages/global/MultiMCPage.cpp b/application/pages/global/MultiMCPage.cpp index 9694fab5..e9b19ac6 100644 --- a/application/pages/global/MultiMCPage.cpp +++ b/application/pages/global/MultiMCPage.cpp @@ -317,6 +317,7 @@ void MultiMCPage::applySettings() // Console settings s->set("ShowConsole", ui->showConsoleCheck->isChecked()); s->set("AutoCloseConsole", ui->autoCloseConsoleCheck->isChecked()); + s->set("ShowConsoleOnError", ui->showConsoleErrorCheck->isChecked()); QString consoleFontFamily = ui->consoleFont->currentFont().family(); s->set("ConsoleFont", consoleFontFamily); s->set("ConsoleFontSize", ui->fontSizeBox->value()); @@ -413,6 +414,7 @@ void MultiMCPage::loadSettings() // Console settings ui->showConsoleCheck->setChecked(s->get("ShowConsole").toBool()); ui->autoCloseConsoleCheck->setChecked(s->get("AutoCloseConsole").toBool()); + ui->showConsoleErrorCheck->setChecked(s->get("ShowConsoleOnError").toBool()); QString fontFamily = MMC->settings()->get("ConsoleFont").toString(); QFont consoleFont(fontFamily); ui->consoleFont->setCurrentFont(consoleFont); diff --git a/application/pages/global/MultiMCPage.ui b/application/pages/global/MultiMCPage.ui index 2d6f45f0..5336afdb 100644 --- a/application/pages/global/MultiMCPage.ui +++ b/application/pages/global/MultiMCPage.ui @@ -7,7 +7,7 @@ 0 0 487 - 557 + 614 @@ -456,6 +456,13 @@ + + + + Show console when the game crashes? + + + @@ -588,6 +595,7 @@ themeComboBoxColors showConsoleCheck autoCloseConsoleCheck + showConsoleErrorCheck lineLimitSpinBox checkStopLogging consoleFont -- cgit v1.2.3