Update sidebar when adding a folder.

This commit is contained in:
Brent Simmons
2017-10-19 13:27:59 -07:00
parent 3812c216b2
commit aca8acea7c
4 changed files with 16 additions and 10 deletions

View File

@@ -192,6 +192,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
children += [folder]
dirty = true
postChildrenDidChangeNotification()
return folder
}

View File

@@ -17,7 +17,7 @@ public typealias NodeVisitBlock = (_ : Node) -> Void
public final class TreeController {
fileprivate weak var delegate: TreeControllerDelegate?
private weak var delegate: TreeControllerDelegate?
public let rootNode: Node
public init(delegate: TreeControllerDelegate, rootNode: Node) {