mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-29 18:29:27 +01:00
Correct scenario where article view controller wasn't getting popped of the navigation stack when there wasn't a selected article.
This commit is contained in:
parent
33c487de85
commit
4f3f56bda5
@ -1102,15 +1102,15 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
|
||||
return subSplitViewController
|
||||
}
|
||||
|
||||
guard currentArticle != nil else {
|
||||
let articleViewController = UIStoryboard.main.instantiateController(ofType: ArticleViewController.self)
|
||||
articleViewController.coordinator = self
|
||||
if let articleViewController = masterNavigationController.viewControllers.last as? ArticleViewController {
|
||||
masterNavigationController.popViewController(animated: false)
|
||||
let controller = addNavControllerIfNecessary(articleViewController, showButton: true)
|
||||
return controller
|
||||
}
|
||||
|
||||
if let articleViewController = masterNavigationController.viewControllers.last as? ArticleViewController {
|
||||
masterNavigationController.popViewController(animated: false)
|
||||
if currentArticle == nil {
|
||||
let articleViewController = UIStoryboard.main.instantiateController(ofType: ArticleViewController.self)
|
||||
articleViewController.coordinator = self
|
||||
let controller = addNavControllerIfNecessary(articleViewController, showButton: true)
|
||||
return controller
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user