Fix initial sidebar load - selected item wasn't getting reloaded correctly
This commit is contained in:
parent
89e899c5d7
commit
1bc46f1251
|
@ -2245,7 +2245,7 @@ private extension SceneCoordinator {
|
||||||
guard let smartFeed = SmartFeedsController.shared.find(by: feedIdentifier) else { return }
|
guard let smartFeed = SmartFeedsController.shared.find(by: feedIdentifier) else { return }
|
||||||
|
|
||||||
markExpanded(SmartFeedsController.shared)
|
markExpanded(SmartFeedsController.shared)
|
||||||
rebuildBackingStores(completion: {
|
rebuildBackingStores(initialLoad: true, completion: {
|
||||||
self.treeControllerDelegate.resetFilterExceptions()
|
self.treeControllerDelegate.resetFilterExceptions()
|
||||||
if let indexPath = self.indexPathFor(smartFeed) {
|
if let indexPath = self.indexPathFor(smartFeed) {
|
||||||
self.selectFeed(indexPath: indexPath) {
|
self.selectFeed(indexPath: indexPath) {
|
||||||
|
@ -2265,7 +2265,7 @@ private extension SceneCoordinator {
|
||||||
|
|
||||||
markExpanded(account)
|
markExpanded(account)
|
||||||
|
|
||||||
rebuildBackingStores(completion: {
|
rebuildBackingStores(initialLoad: true, completion: {
|
||||||
self.treeControllerDelegate.resetFilterExceptions()
|
self.treeControllerDelegate.resetFilterExceptions()
|
||||||
|
|
||||||
if let folderNode = self.findFolderNode(folderName: folderName, beginningAt: accountNode), let indexPath = self.indexPathFor(folderNode) {
|
if let folderNode = self.findFolderNode(folderName: folderName, beginningAt: accountNode), let indexPath = self.indexPathFor(folderNode) {
|
||||||
|
|
Loading…
Reference in New Issue