mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Move BindCollectionChanged
out of async load
This commit is contained in:
parent
20759657de
commit
8eab7df955
@ -45,11 +45,15 @@ namespace osu.Game.Online.Chat
|
||||
notifyOnPrivateMessage = config.GetBindable<bool>(OsuSetting.NotifyOnPrivateMessage);
|
||||
|
||||
localUser.BindTo(api.LocalUser);
|
||||
|
||||
joinedChannels.BindCollectionChanged(channelsChanged);
|
||||
joinedChannels.BindTo(channelManager.JoinedChannels);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
joinedChannels.BindCollectionChanged(channelsChanged, true);
|
||||
}
|
||||
|
||||
private void channelsChanged(object sender, NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
switch (e.Action)
|
||||
|
Loading…
Reference in New Issue
Block a user