소스 검색

【页面编辑】- 删除右键菜单分享

liaoxiaoyue 1 년 전
부모
커밋
499e274b66
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      PDF Office/PDF Office/Class/PDFTools/PageEdit/Controller/KMPDFEditViewController.swift

+ 6 - 6
PDF Office/PDF Office/Class/PDFTools/PageEdit/Controller/KMPDFEditViewController.swift

@@ -1327,12 +1327,12 @@ extension KMPDFEditViewController : NSMenuDelegate,NSMenuItemValidation {
         item = menu.addItem(withTitle: NSLocalizedString("Print", comment: ""), action: #selector(printItemAction), target: self)
         item.representedObject = row
         
-        if (row.count <= 1) {
-            item = menu.addItem(withTitle: NSLocalizedString("Share", comment: ""), action: nil, target: self)
-            item.representedObject = row
-            
-            item.submenu = NSSharingServicePicker.menu(forSharingItems: [self.listView!.document.documentURL ?? ""], subjectContext: "", withTarget: self, selector: #selector(sharePageItemAction), serviceDelegate: nil)
-        }
+//        if (row.count <= 1) {
+//            item = menu.addItem(withTitle: NSLocalizedString("Share", comment: ""), action: nil, target: self)
+//            item.representedObject = row
+//            
+//            item.submenu = NSSharingServicePicker.menu(forSharingItems: [self.listView!.document.documentURL ?? ""], subjectContext: "", withTarget: self, selector: #selector(sharePageItemAction), serviceDelegate: nil)
+//        }
     }
 }