|
@@ -1315,6 +1315,10 @@ extension KMPDFToolbarController: KMRedactToolbarControllerDelegate {
|
|
|
|
|
|
func exitRedactAlert() {
|
|
|
if UserDefaults.standard.object(forKey: "kExitRedactAlert") != nil {
|
|
|
+ //退出
|
|
|
+ viewManager?.subToolMode = .None
|
|
|
+ cancelSelectedSecondToolbarItems(.Protect)
|
|
|
+ delegate?.kmPDFToolbarControllerDidToolbarItemClicked?(self, KMPDFToolbar_protect_redact_Exit_Identifier)
|
|
|
return
|
|
|
}
|
|
|
let alert = NSAlert()
|
|
@@ -1345,6 +1349,10 @@ extension KMPDFToolbarController: KMRedactToolbarControllerDelegate {
|
|
|
|
|
|
func applyRedactAlert() {
|
|
|
if UserDefaults.standard.object(forKey: "kApplyRedactAlert") != nil {
|
|
|
+ //应用
|
|
|
+ viewManager?.subToolMode = .None
|
|
|
+ cancelSelectedSecondToolbarItems(.Protect)
|
|
|
+ delegate?.kmPDFToolbarControllerDidToolbarItemClicked?(self, KMPDFToolbar_protect_redact_Apply_Identifier)
|
|
|
return
|
|
|
}
|
|
|
let alert = NSAlert()
|