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