Merge remote-tracking branch 'origin/feature_raise_console' into develop
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user