mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Schedule channel manager bindable events to ensure they happen after the first poll
This commit is contained in:
parent
60b10fca4e
commit
fce527b0df
@ -155,13 +155,15 @@ namespace osu.Game.Overlays
|
||||
chatHeight.BindValueChanged(height => { Height = height.NewValue; }, true);
|
||||
|
||||
currentChannel.BindTo(channelManager.CurrentChannel);
|
||||
currentChannel.BindValueChanged(currentChannelChanged, true);
|
||||
|
||||
joinedChannels.BindTo(channelManager.JoinedChannels);
|
||||
joinedChannels.BindCollectionChanged(joinedChannelsChanged, true);
|
||||
|
||||
availableChannels.BindTo(channelManager.AvailableChannels);
|
||||
availableChannels.BindCollectionChanged(availableChannelsChanged, true);
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
currentChannel.BindValueChanged(currentChannelChanged, true);
|
||||
joinedChannels.BindCollectionChanged(joinedChannelsChanged, true);
|
||||
availableChannels.BindCollectionChanged(availableChannelsChanged, true);
|
||||
});
|
||||
|
||||
channelList.OnRequestSelect += channel => channelManager.CurrentChannel.Value = channel;
|
||||
channelList.OnRequestLeave += channel => channelManager.LeaveChannel(channel);
|
||||
|
Loading…
Reference in New Issue
Block a user