From 95684834ecb45261da1640a4ad8143653698b192 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 16 May 2024 13:14:34 +0000 Subject: Refactor loadFromLogFile calls into ChatTab contructor This has the side effect that now #Debug history is also loaded. **** mana/plus!84 --- src/gui/widgets/tabs/chat/chattab.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/tabs/chat/chattab.cpp') diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index ec9042694..9809287d2 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -97,6 +97,9 @@ ChatTab::ChatTab(const Widget2 *const widget, if (chatWindow != nullptr) chatWindow->addTab(this); mTextOutput->updateSize(true); + + if (config.getBoolValue("showChatHistory")) + loadFromLogFile(logName); } ChatTab::~ChatTab() -- cgit v1.2.3-70-g09d2