Clear messages when the current channel is removed.

- Stop using TabContainer.Children
This commit is contained in:
naoey
2017-08-17 08:20:44 +05:30
parent 381c709639
commit 4f7ae1ed8b
2 changed files with 6 additions and 2 deletions

View File

@ -397,7 +397,11 @@ namespace osu.Game.Overlays
{
if (channel == null) return;
if (channel == CurrentChannel)
currentChannelContainer.Clear(false);
careChannels.Remove(channel);
loadedChannels.Remove(loadedChannels.Find(c => c.Channel == channel));
channelTabs.RemoveItem(channel);
channel.Joined.Value = false;