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:
parent
bd1c73c1d3
commit
715671edad
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue