From f55d07a8299de103c023c8857ef11b72bf944b6e Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sat, 11 May 2024 20:53:39 +0000 Subject: [PATCH] Fix not visible text after switching to channel without slider in log --- client/globalLobby/GlobalLobbyWindow.cpp | 1 - client/widgets/TextControls.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/client/globalLobby/GlobalLobbyWindow.cpp b/client/globalLobby/GlobalLobbyWindow.cpp index 8c76694e3..10a986a3c 100644 --- a/client/globalLobby/GlobalLobbyWindow.cpp +++ b/client/globalLobby/GlobalLobbyWindow.cpp @@ -51,7 +51,6 @@ void GlobalLobbyWindow::doOpenChannel(const std::string & channelType, const std currentChannelName = channelName; chatHistory.clear(); unreadChannels.erase(channelType + "_" + channelName); - widget->getGameChat()->setText(""); auto history = CSH->getGlobalLobby().getChannelHistory(channelType, channelName); diff --git a/client/widgets/TextControls.cpp b/client/widgets/TextControls.cpp index 8c125426e..68fb6cee1 100644 --- a/client/widgets/TextControls.cpp +++ b/client/widgets/TextControls.cpp @@ -409,6 +409,7 @@ void CTextBox::setText(const std::string & text) { // slider is no longer needed slider.reset(); + label->scrollTextTo(0); } else if(slider) {