1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 13:22:55 +08:00

Allow no channels to be present

This commit is contained in:
Craftplacer 2020-01-19 18:56:15 +01:00
parent be2a88c8a5
commit f98347b3bb

View File

@ -225,7 +225,7 @@ namespace osu.Game.Overlays
foreach (Channel channel in channelManager.JoinedChannels)
ChannelTabControl.AddChannel(channel);
ChannelTabControl.Current.Value = channelManager.CurrentChannel.Value ?? channelManager.JoinedChannels.First();
ChannelTabControl.Current.Value = channelManager.CurrentChannel.Value ?? channelManager.JoinedChannels.FirstOrDefault();
channelManager.AvailableChannels.ItemsAdded += availableChannelsChanged;
channelManager.AvailableChannels.ItemsRemoved += availableChannelsChanged;