|
@@ -334,8 +334,7 @@ extension KMLeftSideViewController: NSMenuDelegate {
|
|
|
selections.append(data.selection)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- if self.listView.hideNotes == false {
|
|
|
+ if self.listView.hideNotes == false && self.listView.allowsNotes() {
|
|
|
item = menu.addItem(withTitle: KMLocalizedString("Add New Circle", "Menu item title"), action: #selector(addAnnotationsForSelections), target: self, tag: CAnnotationType.circle.rawValue)
|
|
|
item?.representedObject = selections
|
|
|
item = menu.addItem(withTitle: KMLocalizedString("Add New Rectangle", "Menu item title"), action: #selector(addAnnotationsForSelections), target: self, tag: CAnnotationType.square.rawValue)
|
|
@@ -368,8 +367,7 @@ extension KMLeftSideViewController: NSMenuDelegate {
|
|
|
item = menu.addItem(title: KMLocalizedString("Select", "Menu item title"), action: #selector(selectSelections), target: self)
|
|
|
item?.representedObject = selections
|
|
|
menu.addItem(.separator())
|
|
|
-
|
|
|
- if self.listView.hideNotes == false {
|
|
|
+ if self.listView.hideNotes == false && self.listView.allowsNotes() {
|
|
|
item = menu.addItem(withTitle: KMLocalizedString("Add New Circle", "Menu item title"), action: #selector(addAnnotationsForSelections), target: self, tag: CAnnotationType.circle.rawValue)
|
|
|
item?.representedObject = selections
|
|
|
item = menu.addItem(withTitle: KMLocalizedString("Add New Rectangle", "Menu item title"), action: #selector(addAnnotationsForSelections), target: self, tag: CAnnotationType.square.rawValue)
|
|
@@ -455,8 +453,7 @@ extension KMLeftSideViewController: NSMenuDelegate {
|
|
|
item?.representedObject = items
|
|
|
|
|
|
menu.addItem(.separator())
|
|
|
- if self.listView.hideNotes == false {
|
|
|
-
|
|
|
+ if self.listView.hideNotes == false && (items?.count ?? 0) == 1 {
|
|
|
let annotation = self.noteItems(items!).lastObject as? CPDFAnnotation
|
|
|
if let data = annotation?.isEditable(), data {
|
|
|
if annotation?.type == nil {
|
|
@@ -646,18 +643,6 @@ extension KMLeftSideViewController: NSMenuItemValidation {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -756,9 +741,6 @@ extension KMLeftSideViewController: NSMenuItemValidation {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -797,15 +779,6 @@ extension KMLeftSideViewController: NSMenuItemValidation {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (action == #selector(outlineContextMenuItemClicked_AddEntry) ||
|
|
|
action == #selector(outlineContextMenuItemClicked_AddChildEntry) ||
|
|
|
action == #selector(outlineContextMenuItemClicked_AddAuntEntry) ||
|