Fix timeline selection in three pane mode

This commit is contained in:
Maurice Parker 2019-07-19 17:27:56 -05:00
parent 1ddf4189d3
commit d2a09a92ae
1 changed files with 8 additions and 4 deletions

View File

@ -441,10 +441,14 @@ class AppCoordinator: NSObject, UndoableCommandRunner {
}
func selectFeed(_ indexPath: IndexPath) {
masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
masterTimelineViewController!.coordinator = self
currentMasterIndexPath = indexPath
navControllerForTimeline().pushViewController(masterTimelineViewController!, animated: true)
if let _ = navControllerForTimeline().viewControllers.first as? MasterTimelineViewController {
currentMasterIndexPath = indexPath
} else {
masterTimelineViewController = UIStoryboard.main.instantiateController(ofType: MasterTimelineViewController.self)
masterTimelineViewController!.coordinator = self
currentMasterIndexPath = indexPath
navControllerForTimeline().pushViewController(masterTimelineViewController!, animated: true)
}
}
func selectArticle(_ indexPath: IndexPath) {