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:
parent
be2a88c8a5
commit
f98347b3bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user