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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults))
|
queueRebuildBackingStores()
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func statusesDidChange(_ note: Notification) {
|
@objc func statusesDidChange(_ note: Notification) {
|
||||||
@ -740,6 +740,9 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
setTimelineFeed(nil, animated: false) {
|
setTimelineFeed(nil, animated: false) {
|
||||||
|
if self.isReadFeedsFiltered {
|
||||||
|
self.queueRebuildBackingStores()
|
||||||
|
}
|
||||||
self.activityManager.invalidateSelecting()
|
self.activityManager.invalidateSelecting()
|
||||||
if self.rootSplitViewController.isCollapsed && self.navControllerForTimeline().viewControllers.last is MasterTimelineViewController {
|
if self.rootSplitViewController.isCollapsed && self.navControllerForTimeline().viewControllers.last is MasterTimelineViewController {
|
||||||
self.navControllerForTimeline().popViewController(animated: animations.contains(.navigation))
|
self.navControllerForTimeline().popViewController(animated: animations.contains(.navigation))
|
||||||
@ -1355,6 +1358,10 @@ private extension SceneCoordinator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func queueRebuildBackingStores() {
|
||||||
|
rebuildBackingStoresQueue.add(self, #selector(rebuildBackingStoresWithDefaults))
|
||||||
|
}
|
||||||
|
|
||||||
@objc func rebuildBackingStoresWithDefaults() {
|
@objc func rebuildBackingStoresWithDefaults() {
|
||||||
rebuildBackingStores()
|
rebuildBackingStores()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user