Просмотр исходного кода

【2025】【Protect】安全, 批量弹窗跳转替换

lizhe 1 месяц назад
Родитель
Сommit
3a5d43671a

+ 6 - 4
PDF Office/PDF Master/KMClass/KMPDFViewController/KMMainViewController.swift

@@ -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