From 17ec88801adf28801ae84dfd652c081feea15995 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 27 Mar 2020 18:00:03 -0500 Subject: [PATCH] Automatically remove Feed items if they should be filtered. Issue #1950 --- Mac/MainWindow/Sidebar/SidebarViewController.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Mac/MainWindow/Sidebar/SidebarViewController.swift b/Mac/MainWindow/Sidebar/SidebarViewController.swift index c07f13a92..e61f9a1ce 100644 --- a/Mac/MainWindow/Sidebar/SidebarViewController.swift +++ b/Mac/MainWindow/Sidebar/SidebarViewController.swift @@ -160,8 +160,7 @@ protocol SidebarDelegate: class { return } - if let feed = representedObject as? Feed, isReadFiltered, feed.unreadCount > 0 { - addTreeControllerToFilterExceptions() + if isReadFiltered { queueRebuildTreeAndRestoreSelection() } } @@ -179,7 +178,6 @@ protocol SidebarDelegate: class { } @objc func batchUpdateDidPerform(_ notification: Notification) { - addTreeControllerToFilterExceptions() rebuildTreeAndRestoreSelection() } @@ -221,7 +219,6 @@ protocol SidebarDelegate: class { } @objc func downloadArticlesDidUpdateUnreadCounts(_ note: Notification) { - addTreeControllerToFilterExceptions() rebuildTreeAndRestoreSelection() }