1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 16:02:58 +08:00

Fix incorrect channel

This commit is contained in:
smoogipoo 2018-12-21 14:37:05 +09:00
parent 1df4826a1d
commit fe6c369e07

View File

@ -24,7 +24,13 @@ namespace osu.Game.Screens.Multi.Match.Components
{
base.LoadComplete();
Channel.Value = channelManager.JoinChannel(new Channel { Id = room.ChannelId, Type = ChannelType.Multiplayer, Name = $"#mp_{room.RoomID}" });
room.RoomID.BindValueChanged(v => updateChannel(), true);
}
private void updateChannel()
{
if (room.RoomID.Value != null)
Channel.Value = channelManager.JoinChannel(new Channel { Id = room.ChannelId, Type = ChannelType.Multiplayer, Name = $"#mp_{room.RoomID}" });
}
}
}