mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-29 02:09:30 +01:00
Clear selected article if you are using a phone and navigate away from the detail controller
This commit is contained in:
parent
42d19ba157
commit
cf6a9c45b4
@ -606,7 +606,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
installTimelineControllerIfNecessary(animated: !automated)
|
||||
} else {
|
||||
timelineFetcher = nil
|
||||
|
||||
activityManager.invalidateSelecting()
|
||||
if rootSplitViewController.isCollapsed && navControllerForTimeline().viewControllers.last is MasterTimelineViewController {
|
||||
navControllerForTimeline().popViewController(animated: !automated)
|
||||
}
|
||||
@ -1016,6 +1016,11 @@ extension SceneCoordinator: UINavigationControllerDelegate {
|
||||
selectFeed(nil)
|
||||
}
|
||||
|
||||
// If we are using a phone and navigate away from the detail, clear up the article resources (including activity)
|
||||
if viewController === masterTimelineViewController && !isThreePanelMode && rootSplitViewController.isCollapsed {
|
||||
selectArticle(nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user