Rebuild the feed dictionary at appropriate times. Fix #169.
This commit is contained in:
parent
1047fa5a02
commit
e026e159d1
|
@ -253,6 +253,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
didAddFeed = true
|
||||
}
|
||||
|
||||
rebuildFeedDictionaries()
|
||||
return didAddFeed // TODO
|
||||
}
|
||||
|
||||
|
@ -290,6 +291,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
}
|
||||
children += [folder]
|
||||
postChildrenDidChangeNotification()
|
||||
rebuildFeedDictionaries()
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -396,7 +398,8 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
}
|
||||
|
||||
@objc func batchUpdateDidPerform(_ note: Notification) {
|
||||
|
||||
|
||||
rebuildFeedDictionaries()
|
||||
updateUnreadCount()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue