From 219b5a89ba8723fb527c9f8d773fa380d0125123 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 27 Nov 2019 19:54:52 -0600 Subject: [PATCH] Fix issue where over optimization was causing crashes due to the diffable datasource not being available --- iOS/SceneCoordinator.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index c75193ef9..c6b1b0c6e 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -343,16 +343,12 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { } } } - + + rebuildBackingStores(initialLoad: true) + // You can't assign the Feeds Read Filter until we've built the backing stores at least once or there is nothing // for state restoration to work with while we are waiting for the unread counts to initialize. if let readFeedsFilterState = windowState[UserInfoKey.readFeedsFilterState] as? Bool { - if readFeedsFilterState { - treeController.rebuild() - rebuildShadowTable() - } else { - rebuildBackingStores(initialLoad: true) - } treeControllerDelegate.isReadFiltered = readFeedsFilterState }