Correct assignment of timeline controller

This commit is contained in:
Maurice Parker 2019-09-11 12:07:09 -05:00
parent b99483f32d
commit b1ddfb33ce
1 changed files with 3 additions and 7 deletions

View File

@ -431,10 +431,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
// MARK: API // MARK: API
func rowsInSection(_ section: Int) -> Int {
return shadowTable[section].count
}
func isExpanded(_ node: Node) -> Bool { func isExpanded(_ node: Node) -> Bool {
return expandedNodes.contains(node) return expandedNodes.contains(node)
} }
@ -1568,9 +1564,9 @@ private extension SceneCoordinator {
// Push a new timeline on to the master navigation controller. For some reason recycling the timeline can freak // Push a new timeline on to the master navigation controller. For some reason recycling the timeline can freak
// the system out and throw it into an infinite loop. // the system out and throw it into an infinite loop.
if currentFeedIndexPath != nil { if currentFeedIndexPath != nil {
let timelineController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self) masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
timelineController.coordinator = self masterTimelineViewController!.coordinator = self
masterNavigationController.pushViewController(timelineController, animated: false) masterNavigationController.pushViewController(masterTimelineViewController!, animated: false)
} }
// Pull the detail or no selection controller out of the sub split second position and move it to the root split controller // Pull the detail or no selection controller out of the sub split second position and move it to the root split controller