mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 14:17:06 +09:00
Subscribe to CollectionChanged before binding to JoinedChannels
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user