From 8bbaab334c5116be4c180c3eac93c4acc844f4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 8 Feb 2017 20:01:42 +0100 Subject: NOISSUE set line limit and overflow behaviour even for hidden console --- api/logic/launch/LaunchTask.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'api/logic/launch/LaunchTask.cpp') diff --git a/api/logic/launch/LaunchTask.cpp b/api/logic/launch/LaunchTask.cpp index 9df5f85a..23c28f50 100644 --- a/api/logic/launch/LaunchTask.cpp +++ b/api/logic/launch/LaunchTask.cpp @@ -209,6 +209,12 @@ shared_qobject_ptr LaunchTask::getLogModel() if(!m_logModel) { m_logModel.reset(new LogModel()); + m_logModel->setMaxLines(m_instance->getConsoleMaxLines()); + m_logModel->setStopOnOverflow(m_instance->shouldStopOnConsoleOverflow()); + // FIXME: should this really be here? + m_logModel->setOverflowMessage(tr("MultiMC stopped watching the game log because the log length surpassed %1 lines.\n" + "You may have to fix your mods because the game is still logging to files and" + " likely wasting harddrive space at an alarming rate!").arg(m_logModel->getMaxLines())); } return m_logModel; } -- cgit v1.2.3