mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
Update unreadCount for an Account only when one of its feeds changes its unreadCount.
This commit is contained in:
parent
a914b3949b
commit
1c3dca4d9b
@ -524,10 +524,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
}
|
||||
|
||||
@objc func unreadCountDidChange(_ note: Notification) {
|
||||
|
||||
// Update the unread count if it’s a direct child.
|
||||
|
||||
if let object = note.object, objectIsChild(object as AnyObject) {
|
||||
if let feed = note.object as? Feed, feed.account === self {
|
||||
updateUnreadCount()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user