|
@@ -640,9 +640,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
item_ = menu.addItem(withTitle: NSLocalizedString("Insert", comment: ""), action: nil, target: self)
|
|
item_ = menu.addItem(withTitle: NSLocalizedString("Insert", comment: ""), action: nil, target: self)
|
|
|
|
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
- subMenu.addItem(withTitle: NSLocalizedString("Insert File", comment: ""), action: #selector(insertPageItemAction), target: self, tag:0)
|
|
|
|
- subMenu.addItem(withTitle: NSLocalizedString("Insert a Blank Page", comment: ""), action: #selector(insertPageItemAction), target: self, tag:1)
|
|
|
|
- subMenu.addItem(withTitle: NSLocalizedString("Insert Custom Page", comment: ""), action: #selector(insertPageItemAction), target: self, tag:2)
|
|
|
|
|
|
+ subMenu.addItem(withTitle: NSLocalizedString("Insert a Blank Page", comment: ""), action: #selector(insertPageItemAction), target: self, tag:0)
|
|
|
|
+ subMenu.addItem(withTitle: NSLocalizedString("Insert Custom Page", comment: ""), action: #selector(insertPageItemAction), target: self, tag:1)
|
|
|
|
+ subMenu.addItem(withTitle: NSLocalizedString("Insert File", comment: ""), action: #selector(insertPageItemAction), target: self, tag:2)
|
|
item_?.submenu = subMenu
|
|
item_?.submenu = subMenu
|
|
}
|
|
}
|
|
} else if (item.sel == KMPDFThumbViewMenu.splitSelector) {
|
|
} else if (item.sel == KMPDFThumbViewMenu.splitSelector) {
|
|
@@ -665,11 +665,11 @@ extension KMPDFEditViewController {
|
|
|
|
|
|
@objc func insertPageItemAction(menu:NSMenuItem) {
|
|
@objc func insertPageItemAction(menu:NSMenuItem) {
|
|
if (menu.tag == 0) {
|
|
if (menu.tag == 0) {
|
|
- self.insertFileAction()
|
|
|
|
- } else if (menu.tag == 1) {
|
|
|
|
self.insertBlankPageAction()
|
|
self.insertBlankPageAction()
|
|
- } else if (menu.tag == 2) {
|
|
|
|
|
|
+ } else if (menu.tag == 1) {
|
|
self.item_insertCustomPage(sender: nil)
|
|
self.item_insertCustomPage(sender: nil)
|
|
|
|
+ } else if (menu.tag == 2) {
|
|
|
|
+ self.insertFileAction()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|