mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add download events to timeline management
This commit is contained in:
@@ -126,8 +126,7 @@ private extension SceneModel {
|
||||
|
||||
// MARK: Subscriptions
|
||||
func subscribeToToolbarChangeEvents() {
|
||||
guard let selectedArticlesPublisher = timelineModel.selectedArticlesPublisher,
|
||||
let articlesPublisher = timelineModel.articlesPublisher else { return }
|
||||
guard let selectedArticlesPublisher = timelineModel.selectedArticlesPublisher else { return }
|
||||
|
||||
NotificationCenter.default.publisher(for: .UnreadCountDidChange)
|
||||
.compactMap { $0.object as? AccountManager }
|
||||
@@ -146,7 +145,7 @@ private extension SceneModel {
|
||||
.store(in: &cancellables)
|
||||
|
||||
statusesDidChangePublisher
|
||||
.combineLatest(articlesPublisher)
|
||||
.combineLatest(timelineModel.articlesSubject)
|
||||
.sink { [weak self] _, articles in
|
||||
self?.updateMarkAllAsReadButtonsState(articles: articles)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user