diff options
-rw-r--r-- | MultiMC.cpp | 1 | ||||
-rw-r--r-- | gui/ConsoleWindow.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp index ddc1fca7..b0a8848f 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -412,6 +412,7 @@ void MultiMC::initGlobalSettings() // Console m_settings->registerSetting("ShowConsole", true); + m_settings->registerSetting("RaiseConsole", true); m_settings->registerSetting("AutoCloseConsole", true); m_settings->registerSetting("LogPrePostOutput", true); diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp index 621f035f..18a617e0 100644 --- a/gui/ConsoleWindow.cpp +++ b/gui/ConsoleWindow.cpp @@ -265,6 +265,13 @@ void ConsoleWindow::onEnded(BaseInstance *instance, int code, QProcess::ExitStat */ if (!isVisible()) show(); + + // Raise Window + if (MMC->settings()->get("RaiseConsole").toBool()) + { + raise(); + activateWindow(); + } } void ConsoleWindow::onLaunchFailed(BaseInstance *instance) |