mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:43:16 +08:00
Subscribe to CollectionChanged before binding to JoinedChannels
This commit is contained in:
parent
d47370bac9
commit
cf39e58ce7
@ -43,12 +43,12 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
notifyOnMention = config.GetBindable<bool>(OsuSetting.ChatHighlightName);
|
||||
notifyOnPM = config.GetBindable<bool>(OsuSetting.ChatMessageNotification);
|
||||
|
||||
channelManager.JoinedChannels.BindTo(joinedChannels);
|
||||
api.LocalUser.BindTo(localUser);
|
||||
|
||||
// Listen for new messages
|
||||
joinedChannels.CollectionChanged += channelsChanged;
|
||||
|
||||
channelManager.JoinedChannels.BindTo(joinedChannels);
|
||||
}
|
||||
|
||||
private void channelsChanged(object sender, NotifyCollectionChangedEventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user