mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
FIx navigation feed clearing code so that it works in three panel mode
This commit is contained in:
@@ -1049,16 +1049,17 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
|
||||
// MARK: UINavigationControllerDelegate
|
||||
|
||||
extension SceneCoordinator: UINavigationControllerDelegate {
|
||||
|
||||
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
|
||||
|
||||
if viewController === masterFeedViewController {
|
||||
// If we are showing the Feeds and only the feeds start clearing stuff
|
||||
if viewController === masterFeedViewController && !isThreePanelMode {
|
||||
activityManager.invalidateCurrentActivities()
|
||||
if !rootSplitViewController.isCollapsed {
|
||||
selectFeed(nil)
|
||||
}
|
||||
selectFeed(nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: Private
|
||||
|
||||
Reference in New Issue
Block a user