Subscribe to CollectionChanged before binding to JoinedChannels

This commit is contained in:
Craftplacer 2021-05-27 01:00:08 +02:00
parent d47370bac9
commit cf39e58ce7
No known key found for this signature in database
GPG Key ID: 0D94BDA3F64B90CE
1 changed files with 2 additions and 2 deletions

View File

@ -43,12 +43,12 @@ private void load(OsuConfigManager config, IAPIProvider api)
{
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)