Prevent stale back-navigation cleanup from clearing a just-selected article. Fixes #5417.

This commit is contained in:
Brent Simmons committed 2026-09-04 15:08:53 -07:00
1 parent 5d6d6d2922
commit ac5f8dac6a
2 files changed
+16 -2

No files matched your search

@@ -243,8 +243,12 @@ final class MainTimelineModernViewController: UIViewController, UndoableCommandR
}
}
// Deselect only when returning from article navigation
if coordinator?.isRootSplitCollapsed ?? true, didPushArticleViewController {
// Deselect only when returning from article navigation, and not while
// another article push is in flight.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5417>
if let coordinator, coordinator.isRootSplitCollapsed,
didPushArticleViewController,
!coordinator.isArticleViewControllerPending {
didPushArticleViewController = false
self.deselectIfNecessary()
}