mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add hide read feeds menu option
This commit is contained in:
@@ -237,6 +237,10 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
return currentSearchField != nil
|
||||
}
|
||||
|
||||
if item.action == #selector(toggleReadFilter(_:)) {
|
||||
(item as! NSMenuItem).state = sidebarViewController?.isReadFiltered ?? false ? .on : .off
|
||||
}
|
||||
|
||||
if item.action == #selector(toggleSidebar(_:)) {
|
||||
guard let splitViewItem = sidebarSplitViewItem else {
|
||||
return false
|
||||
@@ -438,6 +442,10 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
}
|
||||
window?.makeFirstResponder(searchField)
|
||||
}
|
||||
|
||||
@IBAction func toggleReadFilter(_ sender: Any?) {
|
||||
sidebarViewController?.toggleReadFilter()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - SidebarDelegate
|
||||
|
||||
Reference in New Issue
Block a user