Made sure the section unread count gets cleared if this isn't an Account.

This commit is contained in:
Maurice Parker 2019-04-18 10:49:31 -05:00
parent 929d7714ab
commit 53077baa46
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ class MasterViewController: UITableViewController, UndoableCommandRunner {
if let account = treeController.rootNode.childAtIndex(section)?.representedObject as? Account {
headerView.unreadCount = account.unreadCount
} else {
headerView.unreadCount = 0
}
return headerView