Check against type instead of channel name

This commit is contained in:
Paul Teng
2019-05-12 06:11:16 -04:00
parent 496a9dd41d
commit d53fb9a5c8
3 changed files with 5 additions and 6 deletions

View File

@ -199,10 +199,8 @@ namespace osu.Game.Overlays
return;
}
if (e.NewValue.Name == "+")
{
if (e.NewValue is ChannelSelectorTabChannel)
return;
}
textbox.Current.Disabled = e.NewValue.ReadOnly;
@ -273,7 +271,7 @@ namespace osu.Game.Overlays
private void selectTab(int index)
{
var channel = channelTabControl.Items.Skip(index).FirstOrDefault();
if (channel != null && channel.Name != "+")
if (channel != null && !(channel is ChannelSelectorTabChannel))
channelTabControl.Current.Value = channel;
}