|
@@ -1673,10 +1673,12 @@ struct KMNMWCFlags {
|
|
|
self.view.window?.endSheet((securityWindowController.window)!)
|
|
|
|
|
|
|
|
|
- let batchWindowController = KMBatchOperateWindowController.sharedWindowController
|
|
|
- let batchOperateFile = KMBatchOperateFile(filePath: self.document?.documentURL.path ?? "", type: .AddPassword)
|
|
|
- batchWindowController.switchToOperateType(.AddPassword, files: [batchOperateFile])
|
|
|
- batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
+// let batchWindowController = KMBatchOperateWindowController.sharedWindowController
|
|
|
+// let batchOperateFile = KMBatchOperateFile(filePath: self.document?.documentURL.path ?? "", type: .AddPassword)
|
|
|
+// batchWindowController.switchToOperateType(.AddPassword, files: [batchOperateFile])
|
|
|
+// batchWindowController.window?.makeKeyAndOrderFront("")
|
|
|
+
|
|
|
+ self.showBatchWindow(type: .security, files: [URL(fileURLWithPath: self.document?.documentURL.path ?? "")])
|
|
|
}
|
|
|
|
|
|
securityWindowController.doneAction = { [unowned self] controller, options, attribute in
|