diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-18 01:19:43 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-18 01:19:43 +0100 |
commit | 9eb0525dab04aa8c41e71db1290daf3e5048746b (patch) | |
tree | 4dc1702b08d71906cb0f23737a2dafbd3480568d /api/logic/launch/LogModel.cpp | |
parent | fb7897a6f4f133c41e475b6093830df2baf134a9 (diff) | |
download | MultiMC-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar MultiMC-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar.gz MultiMC-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar.lz MultiMC-9eb0525dab04aa8c41e71db1290daf3e5048746b.tar.xz MultiMC-9eb0525dab04aa8c41e71db1290daf3e5048746b.zip |
NOISSUE preserve log page checkbox state when the instance window is closed
Only for a single session, not between sessions.
Diffstat (limited to 'api/logic/launch/LogModel.cpp')
-rw-r--r-- | api/logic/launch/LogModel.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/logic/launch/LogModel.cpp b/api/logic/launch/LogModel.cpp index 042feeab..72b076e9 100644 --- a/api/logic/launch/LogModel.cpp +++ b/api/logic/launch/LogModel.cpp @@ -69,6 +69,11 @@ void LogModel::suspend(bool suspend) m_suspended = suspend; } +bool LogModel::suspended() +{ + return m_suspended; +} + void LogModel::clear() { beginResetModel(); @@ -147,3 +152,16 @@ void LogModel::setOverflowMessage(const QString& overflowMessage) { m_overflowMessage = overflowMessage; } + +void LogModel::setLineWrap(bool state) +{ + if(m_lineWrap != state) + { + m_lineWrap = state; + } +} + +bool LogModel::wrapLines() const +{ + return m_lineWrap; +} |