|
@@ -13,7 +13,7 @@ class KMBackgroundWindowController: KMBaseWindowController {
|
|
|
@IBOutlet weak var addBackgroundView: KMAddBackgroundView!
|
|
|
|
|
|
var type: KMBackgroundManagerType = .use
|
|
|
-
|
|
|
+ var currentType: Int = 0
|
|
|
var operateCallBack: KMBackgroundWindowControllerOperateCallBack?
|
|
|
|
|
|
override func windowDidLoad() {
|
|
@@ -21,8 +21,9 @@ class KMBackgroundWindowController: KMBaseWindowController {
|
|
|
|
|
|
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
|
|
|
addBackgroundView.isHiddenBatchBtn = isBatch
|
|
|
- addBackgroundView.pdfDocument = self.pdfDocument
|
|
|
addBackgroundView.type = type
|
|
|
+ addBackgroundView.currentType = currentType
|
|
|
+ addBackgroundView.pdfDocument = self.pdfDocument
|
|
|
addBackgroundView.cancelAction = { [unowned self] view in
|
|
|
cancelAction?(self)
|
|
|
}
|