Fix channel tab control test scene

This commit is contained in:
smoogipoo
2020-01-16 18:34:56 +09:00
parent 86ae442d54
commit d01cc37968
2 changed files with 32 additions and 15 deletions

View File

@ -81,7 +81,10 @@ namespace osu.Game.Overlays.Chat.Tabs
RemoveItem(channel);
if (Current.Value == channel)
Current.Value = Items.FirstOrDefault();
{
// Prefer non-selector channels first
Current.Value = Items.FirstOrDefault(c => !(c is ChannelSelectorTabItem.ChannelSelectorTabChannel)) ?? Items.FirstOrDefault();
}
}
protected override void SelectTab(TabItem<Channel> tab)