From 72bd722def4680abfbaa29bad4811ab5ff6511e8 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 17 Aug 2020 17:50:50 -0500 Subject: [PATCH] Remove sidebar filter button. Issue #2346 --- Mac/Base.lproj/MainWindow.storyboard | 33 +++---------------- .../Sidebar/SidebarViewController.swift | 11 ------- 2 files changed, 4 insertions(+), 40 deletions(-) diff --git a/Mac/Base.lproj/MainWindow.storyboard b/Mac/Base.lproj/MainWindow.storyboard index 7d1117723..fda3b05df 100644 --- a/Mac/Base.lproj/MainWindow.storyboard +++ b/Mac/Base.lproj/MainWindow.storyboard @@ -290,35 +290,14 @@ - - - - - - - - - - - - + - + - + @@ -423,22 +402,18 @@ - - + - - - diff --git a/Mac/MainWindow/Sidebar/SidebarViewController.swift b/Mac/MainWindow/Sidebar/SidebarViewController.swift index c0008daa2..bb262ae07 100644 --- a/Mac/MainWindow/Sidebar/SidebarViewController.swift +++ b/Mac/MainWindow/Sidebar/SidebarViewController.swift @@ -20,7 +20,6 @@ protocol SidebarDelegate: class { @objc class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSMenuDelegate, UndoableCommandRunner { - @IBOutlet weak var readFilteredButton: NSButton! @IBOutlet var outlineView: SidebarOutlineView! weak var delegate: SidebarDelegate? @@ -129,8 +128,6 @@ protocol SidebarDelegate: class { if let readFeedsFilterState = state[UserInfoKey.readFeedsFilterState] as? Bool { isReadFiltered = readFeedsFilterState } - - updateReadFilterButton() } // MARK: - Notifications @@ -453,7 +450,6 @@ protocol SidebarDelegate: class { } delegate?.sidebarInvalidatedRestorationState(self) rebuildTreeAndRestoreSelection() - updateReadFilterButton() } } @@ -820,13 +816,6 @@ private extension SidebarViewController { return outlineView.revealAndSelectRepresentedObject(representedObject, treeController) } - func updateReadFilterButton() { - if isReadFiltered { - readFilteredButton.image = AppAssets.filterActive - } else { - readFilteredButton.image = AppAssets.filterInactive - } - } } private extension Node {