mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 09:26:26 +01:00
Merge branch 'mac-release'
This commit is contained in:
commit
ecec048716
@ -684,9 +684,15 @@ extension TimelineViewController: NSUserInterfaceValidations {
|
|||||||
|
|
||||||
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
func validateUserInterfaceItem(_ item: NSValidatedUserInterfaceItem) -> Bool {
|
||||||
|
|
||||||
|
if item.action == #selector(openArticleInBrowser(_:)) {
|
||||||
|
let currentLink = oneSelectedArticle?.preferredLink
|
||||||
|
return currentLink != nil
|
||||||
|
}
|
||||||
|
|
||||||
if item.action == #selector(copy(_:)) {
|
if item.action == #selector(copy(_:)) {
|
||||||
return NSPasteboard.general.canCopyAtLeastOneObject(selectedArticles)
|
return NSPasteboard.general.canCopyAtLeastOneObject(selectedArticles)
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user