Rebuild the feed dictionary at appropriate times. Fix #169.

This commit is contained in:
Brent Simmons 2017-11-25 18:05:20 -08:00
parent 1047fa5a02
commit e026e159d1
1 changed files with 4 additions and 1 deletions

View File

@ -253,6 +253,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
didAddFeed = true didAddFeed = true
} }
rebuildFeedDictionaries()
return didAddFeed // TODO return didAddFeed // TODO
} }
@ -290,6 +291,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
} }
children += [folder] children += [folder]
postChildrenDidChangeNotification() postChildrenDidChangeNotification()
rebuildFeedDictionaries()
return true return true
} }
@ -397,6 +399,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
@objc func batchUpdateDidPerform(_ note: Notification) { @objc func batchUpdateDidPerform(_ note: Notification) {
rebuildFeedDictionaries()
updateUnreadCount() updateUnreadCount()
} }