1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Move BindCollectionChanged out of async load

This commit is contained in:
Dean Herbert 2021-06-11 17:51:58 +09:00
parent 20759657de
commit 8eab7df955

View File

@ -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)