mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Correctly handle showing the detail view when the root view controller is collapsed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user