|
@@ -121,6 +121,8 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
|
|
|
var signatures: [Any] = []
|
|
|
|
|
|
var addButtonLayer: CALayer?
|
|
|
+
|
|
|
+ var customStampWC: CustomStampWindowController!
|
|
|
|
|
|
// MARK: Init Method
|
|
|
|
|
@@ -1099,7 +1101,7 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
|
|
|
}
|
|
|
|
|
|
@IBAction func customStampButtonAction(_ sender: NSButton) {
|
|
|
- let customStampWC = CustomStampWindowController.currentWC()
|
|
|
+ customStampWC = CustomStampWindowController.init(windowNibName: "CustomStampWindowController")
|
|
|
customStampWC.showWindow(nil)
|
|
|
customStampWC.reloadData()
|
|
|
customStampWC.clickHandle = {[weak self] windowVC, clickType, resultImage in
|
|
@@ -1130,10 +1132,12 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
|
|
|
}
|
|
|
self?.view.window?.endSheet(windowVC.window!)
|
|
|
windowVC.clear()
|
|
|
+ CustomStampManager.manager.isWindowShow = false
|
|
|
}
|
|
|
self.view.window?.beginSheet(customStampWC.window!, completionHandler: { response in
|
|
|
|
|
|
})
|
|
|
+ CustomStampManager.manager.isWindowShow = true
|
|
|
}
|
|
|
|
|
|
|