mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-05 22:37:45 +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 {
|
||||
let targetSplit = ensureDoubleSplit()
|
||||
targetSplit.showDetailViewController(controller, sender: self)
|
||||
} else if rootSplitViewController.isCollapsed {
|
||||
rootSplitViewController.showDetailViewController(controller, sender: self)
|
||||
} else {
|
||||
if let shimController = rootSplitViewController.viewControllers.last {
|
||||
shimController.replaceChildAndPinView(controller)
|
||||
|
Loading…
Reference in New Issue
Block a user