|
@@ -776,13 +776,13 @@ import Cocoa
|
|
let controller = self._getPDFRedactController()
|
|
let controller = self._getPDFRedactController()
|
|
if let data = controller {
|
|
if let data = controller {
|
|
if data.redactPdfView.newAddAnnotation.count > 0 {
|
|
if data.redactPdfView.newAddAnnotation.count > 0 {
|
|
-// KMAlertTool.runModel(message: "", informative: KMLocalizedString("There are unapplied redactions in this file. Exit will not save redaction.", nil), buttons: [KMLocalizedString("Exit", nil), KMLocalizedString("Cancel", nil)]) { response in
|
|
|
|
-// if response == .alertFirstButtonReturn {
|
|
|
|
- controller?.redactPdfView.newAddAnnotation.removeAll()
|
|
|
|
-// self.exitRedact()
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// return
|
|
|
|
|
|
+ KMAlertTool.runModel(message: "", informative: KMLocalizedString("There are unapplied redactions in this file. Exit will not save redaction.", nil), buttons: [KMLocalizedString("Exit", nil), KMLocalizedString("Cancel", nil)]) { response in
|
|
|
|
+ if response == .alertFirstButtonReturn {
|
|
|
|
+ controller?.redactPdfView.newAddAnnotation.removeAll()
|
|
|
|
+ self.exitRedact()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
NSColorPanel.shared.showsAlpha = true
|
|
NSColorPanel.shared.showsAlpha = true
|