mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 03:56:55 +01:00
Don't rebuild the shadow table during launch for unread counts. Issue #1733
This commit is contained in:
parent
6b23cadc41
commit
967410e0f5
@ -445,6 +445,11 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
}
|
||||
|
||||
@objc func unreadCountDidChange(_ note: Notification) {
|
||||
// We will handle the filtering of unread feeds in unreadCountDidInitialize after they have all be calculated
|
||||
guard AccountManager.shared.isUnreadCountsInitialized else {
|
||||
return
|
||||
}
|
||||
|
||||
// If we are filtering reads, the new unread count is greater than 1, and the feed isn't shown then continue
|
||||
guard let feed = note.object as? Feed, isReadFeedsFiltered, feed.unreadCount > 0, !shadowTableContains(feed) else {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user