1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:42:57 +08:00

Make current value behaviour between channels and tabs consistent.

- Trim whitespace
This commit is contained in:
naoey 2017-08-18 13:35:48 +05:30
parent 4f7ae1ed8b
commit 7ad4c046db
2 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,9 @@ namespace osu.Game.Overlays.Chat
TabContainer.ChangeChildDepth(selectorTab, float.MaxValue);
base.AddTabItem(item, addToDropdown);
if (SelectedTab == null)
SelectTab(item);
}
protected override TabItem<Channel> CreateTabItem(Channel value)

View File

@ -398,7 +398,10 @@ namespace osu.Game.Overlays
if (channel == null) return;
if (channel == CurrentChannel)
{
currentChannel = null;
currentChannelContainer.Clear(false);
}
careChannels.Remove(channel);
loadedChannels.Remove(loadedChannels.Find(c => c.Channel == channel));