mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +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);
|
notifyOnMention = config.GetBindable<bool>(OsuSetting.ChatHighlightName);
|
||||||
notifyOnPM = config.GetBindable<bool>(OsuSetting.ChatMessageNotification);
|
notifyOnPM = config.GetBindable<bool>(OsuSetting.ChatMessageNotification);
|
||||||
|
|
||||||
channelManager.JoinedChannels.BindTo(joinedChannels);
|
|
||||||
api.LocalUser.BindTo(localUser);
|
api.LocalUser.BindTo(localUser);
|
||||||
|
|
||||||
// Listen for new messages
|
// Listen for new messages
|
||||||
joinedChannels.CollectionChanged += channelsChanged;
|
joinedChannels.CollectionChanged += channelsChanged;
|
||||||
|
|
||||||
|
channelManager.JoinedChannels.BindTo(joinedChannels);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void channelsChanged(object sender, NotifyCollectionChangedEventArgs e)
|
private void channelsChanged(object sender, NotifyCollectionChangedEventArgs e)
|
||||||
|
Reference in New Issue
Block a user