mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:02:55 +08: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);
|
chatHeight.BindValueChanged(height => { Height = height.NewValue; }, true);
|
||||||
|
|
||||||
currentChannel.BindTo(channelManager.CurrentChannel);
|
currentChannel.BindTo(channelManager.CurrentChannel);
|
||||||
currentChannel.BindValueChanged(currentChannelChanged, true);
|
|
||||||
|
|
||||||
joinedChannels.BindTo(channelManager.JoinedChannels);
|
joinedChannels.BindTo(channelManager.JoinedChannels);
|
||||||
joinedChannels.BindCollectionChanged(joinedChannelsChanged, true);
|
|
||||||
|
|
||||||
availableChannels.BindTo(channelManager.AvailableChannels);
|
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.OnRequestSelect += channel => channelManager.CurrentChannel.Value = channel;
|
||||||
channelList.OnRequestLeave += channel => channelManager.LeaveChannel(channel);
|
channelList.OnRequestLeave += channel => channelManager.LeaveChannel(channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user