Rebuild the Feeds list when coming back to it from the Timeline while the root split is collapsed to filter read Feeds.

This commit is contained in:
Maurice Parker 2020-03-28 01:43:54 -05:00
parent bd1c73c1d3
commit 715671edad
1 changed files with 8 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
return
}
rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults))
queueRebuildBackingStores()
}
@objc func statusesDidChange(_ note: Notification) {
@ -740,6 +740,9 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
} else {
setTimelineFeed(nil, animated: false) {
if self.isReadFeedsFiltered {
self.queueRebuildBackingStores()
}
self.activityManager.invalidateSelecting()
if self.rootSplitViewController.isCollapsed && self.navControllerForTimeline().viewControllers.last is MasterTimelineViewController {
self.navControllerForTimeline().popViewController(animated: animations.contains(.navigation))
@ -1355,6 +1358,10 @@ private extension SceneCoordinator {
}
}
}
func queueRebuildBackingStores() {
rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults))
}
@objc func rebuildBackingStoresWithDefaults() {
rebuildBackingStores()