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
}
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()
}