Don't animate backing store rebuild on initial state restoration because it interferes with feed selection. Fixes #3475

This commit is contained in:
Maurice Parker 2022-02-27 17:15:46 -06:00
parent 8ffdf725d2
commit d68d4228f9

View File

@ -1111,7 +1111,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner {
return timelineFeed == feed
}
func discloseWebFeed(_ webFeed: WebFeed, animations: Animations = [], completion: (() -> Void)? = nil) {
func discloseWebFeed(_ webFeed: WebFeed, initialLoad: Bool = false, animations: Animations = [], completion: (() -> Void)? = nil) {
if isSearching {
masterTimelineViewController?.hideSearch()
}
@ -1135,7 +1135,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner {
self.treeControllerDelegate.addFilterException(parentFolderFeedID)
}
rebuildBackingStores(completion: {
rebuildBackingStores(initialLoad: initialLoad, completion: {
self.treeControllerDelegate.resetFilterExceptions()
self.selectFeed(webFeed, animations: animations, completion: completion)
})
@ -2272,7 +2272,7 @@ private extension SceneCoordinator {
return
}
self.discloseWebFeed(webFeed) {
self.discloseWebFeed(webFeed, initialLoad: true) {
self.masterFeedViewController.focus()
}
}