Przeglądaj źródła

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

Ivan Savenko 1 rok temu
rodzic
commit
f55d07a829

+ 0 - 1
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);
 

+ 1 - 0
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)
 	{