瀏覽代碼

【fix】【注释】添加注释或删除注释后,进入标记密文,未显示注释,bug修复

tangchao 10 月之前
父節點
當前提交
247f8328b9

+ 12 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -3851,6 +3851,12 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
         } else if type == .Annatiton {
             self.rightSideViewController.subViewType = .AnnotationProperts
         } else if type == .redact {
+            if self.needSaveDocument() {
+                self.saveDocumentWithProgressAlert { [unowned self] params in
+                    self.enterRedact()
+                }
+                return
+            }
             self.enterRedact()
         } else if type == .Tool {
             self.loadOpenFileFunctionGuide(.pdfCompareGuide)
@@ -4656,6 +4662,12 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
                     if self.hasShowDigitalSign() {
                         self.exitDigitalSign()
                     } else {
+                        if self.needSaveDocument() {
+                            self.saveDocumentWithProgressAlert { [unowned self] params in
+                                self.showDigitalSignWindow(withFilePathURL: self.listView.document.documentURL)
+                            }
+                            return
+                        }
                         self.showDigitalSignWindow(withFilePathURL: self.listView.document.documentURL)
                     }
                 }