Remove code to auto expand reactivated accounts
This commit is contained in:
parent
99d24e1623
commit
245a648293
|
@ -511,23 +511,14 @@ class SceneCoordinator: NSObject, UndoableCommandRunner {
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func accountStateDidChange(_ note: Notification) {
|
@objc func accountStateDidChange(_ note: Notification) {
|
||||||
let expandNewlyActivatedAccount = {
|
|
||||||
if let account = note.userInfo?[Account.UserInfoKey.account] as? Account,
|
|
||||||
account.isActive,
|
|
||||||
let node = self.treeController.rootNode.childNodeRepresentingObject(account) {
|
|
||||||
self.markExpanded(node)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if timelineFetcherContainsAnyPseudoFeed() {
|
if timelineFetcherContainsAnyPseudoFeed() {
|
||||||
fetchAndMergeArticlesAsync(animated: true) {
|
fetchAndMergeArticlesAsync(animated: true) {
|
||||||
self.masterTimelineViewController?.reinitializeArticles(resetScroll: false)
|
self.masterTimelineViewController?.reinitializeArticles(resetScroll: false)
|
||||||
self.rebuildBackingStores(updateExpandedNodes: expandNewlyActivatedAccount)
|
self.rebuildBackingStores()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.rebuildBackingStores(updateExpandedNodes: expandNewlyActivatedAccount)
|
self.rebuildBackingStores()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func userDidAddAccount(_ note: Notification) {
|
@objc func userDidAddAccount(_ note: Notification) {
|
||||||
|
|
Loading…
Reference in New Issue