1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix not visible text after switching to channel without slider in log

This commit is contained in:
Ivan Savenko 2024-05-11 20:53:39 +00:00
parent 890e794e32
commit f55d07a829
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -409,6 +409,7 @@ void CTextBox::setText(const std::string & text)
{
// slider is no longer needed
slider.reset();
label->scrollTextTo(0);
}
else if(slider)
{