mirror of https://github.com/ppy/osu
Subscribe to CollectionChanged before binding to JoinedChannels
This commit is contained in:
parent
d47370bac9
commit
cf39e58ce7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue