@@ -346,6 +346,7 @@ Host::Host(int port, const QString& hostname, const QString& login, const QStrin
346346, mCommandLineBgColor (Qt::black)
347347, mMapperUseAntiAlias (true )
348348, mFORCE_MXP_NEGOTIATION_OFF (false )
349+ , mFORCE_CHARSET_NEGOTIATION_OFF (false )
349350, mpDockableMapWidget()
350351, mEnableTextAnalyzer (false )
351352, mTimerDebugOutputSuppressionInterval (QTime())
@@ -379,6 +380,7 @@ Host::Host(int port, const QString& hostname, const QString& login, const QStrin
379380, mPlayerRoomInnerDiameterPercentage (70 )
380381, mProfileStyleSheet (QString())
381382, mSearchOptions (dlgTriggerEditor::SearchOption::SearchOptionNone)
383+ , mCompactInputLine (false )
382384{
383385 // mLogStatus = mudlet::self()->mAutolog;
384386 mLuaInterface .reset (new LuaInterface (this ));
@@ -2553,3 +2555,17 @@ std::pair<bool, QString> Host::setMapperTitle(const QString& title)
25532555
25542556 return {true , QString ()};
25552557}
2558+
2559+ void Host::setCompactInputLine (const bool state)
2560+ {
2561+ if (mCompactInputLine != state) {
2562+ mCompactInputLine = state;
2563+ // When the profile is being loaded and the previously saved data is
2564+ // read from the XML file the main TConsole has not been instatiated
2565+ // yet - so must check for it existing first - and ensure the read
2566+ // setting is applied in the constructor for it:
2567+ if (mpConsole && mpConsole->mpButtonMainLayer ) {
2568+ mpConsole->mpButtonMainLayer ->setVisible (!state);
2569+ }
2570+ }
2571+ }
0 commit comments