From e81966c8845bc69f3e6d5072e5903c39548837cf Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 28 Jan 2022 16:07:57 -0800 Subject: [PATCH] Remove obsolete function flag --- iOS/Article/ArticleViewController.swift | 1 - iOS/SceneCoordinator.swift | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift index f58a490ab..0a6bdb90b 100644 --- a/iOS/Article/ArticleViewController.swift +++ b/iOS/Article/ArticleViewController.swift @@ -171,7 +171,6 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable { override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(true) - coordinator.isArticleViewControllerPending = false } override func viewWillDisappear(_ animated: Bool) { diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 6407c94ed..131d830a8 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -84,8 +84,6 @@ class SceneCoordinator: NSObject, UndoableCommandRunner { private var savedSearchArticles: ArticleArray? = nil private var savedSearchArticleIds: Set? = nil - var isArticleViewControllerPending = false - private(set) var sortDirection = AppDefaults.shared.timelineSortDirection { didSet { if sortDirection != oldValue { @@ -1342,7 +1340,7 @@ extension SceneCoordinator: UINavigationControllerDelegate { // Don't clear it if we have pushed an ArticleViewController, but don't yet see it on the navigation stack. // This happens when we are going to the next unread and we need to grab another timeline to continue. The // ArticleViewController will be pushed, but we will briefly show the Timeline. Don't clear things out when that happens. - if viewController === masterTimelineViewController && lastMainControllerToAppear == .article && !isArticleViewControllerPending { + if viewController === masterTimelineViewController && lastMainControllerToAppear == .article { currentArticle = nil masterTimelineViewController?.updateArticleSelection(animations: [.scroll, .select, .navigation]) activityManager.invalidateReading()