mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Mark Read command now works.
This commit is contained in:
@@ -101,7 +101,11 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
if item.action == #selector(markAllAsRead(_:)) {
|
||||
return canMarkAllAsRead()
|
||||
}
|
||||
|
||||
|
||||
if item.action == #selector(markRead(_:)) {
|
||||
return canMarkRead()
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -139,6 +143,11 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||
|
||||
timelineViewController?.markAllAsRead()
|
||||
}
|
||||
|
||||
@IBAction func markRead(_ sender: AnyObject?) {
|
||||
|
||||
timelineViewController?.markSelectedArticlesAsRead(sender!)
|
||||
}
|
||||
|
||||
@IBAction func toggleSidebar(_ sender: AnyObject?) {
|
||||
|
||||
@@ -218,6 +227,11 @@ private extension MainWindowController {
|
||||
return timelineViewController?.canMarkAllAsRead() ?? false
|
||||
}
|
||||
|
||||
func canMarkRead() -> Bool {
|
||||
|
||||
return timelineViewController?.canMarkSelectedArticlesAsRead() ?? false
|
||||
}
|
||||
|
||||
func updateWindowTitle() {
|
||||
|
||||
if unreadCount < 1 {
|
||||
|
||||
Reference in New Issue
Block a user