mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-23 07:39:59 +01:00
Correctly handle showing the detail view when the root view controller is collapsed
This commit is contained in:
parent
e22088b284
commit
9e0a4aed00
@ -846,6 +846,8 @@ private extension AppCoordinator {
|
|||||||
if isThreePanelMode {
|
if isThreePanelMode {
|
||||||
let targetSplit = ensureDoubleSplit()
|
let targetSplit = ensureDoubleSplit()
|
||||||
targetSplit.showDetailViewController(controller, sender: self)
|
targetSplit.showDetailViewController(controller, sender: self)
|
||||||
|
} else if rootSplitViewController.isCollapsed {
|
||||||
|
rootSplitViewController.showDetailViewController(controller, sender: self)
|
||||||
} else {
|
} else {
|
||||||
if let shimController = rootSplitViewController.viewControllers.last {
|
if let shimController = rootSplitViewController.viewControllers.last {
|
||||||
shimController.replaceChildAndPinView(controller)
|
shimController.replaceChildAndPinView(controller)
|
||||||
|
Loading…
Reference in New Issue
Block a user