|
@@ -878,6 +878,17 @@ extension KMBatchOperateAddWatermarkViewController {
|
|
|
}
|
|
|
|
|
|
@objc private func _batchFilesCountNotification(_ notification: NSNotification) {
|
|
|
+ let files: Array? = notification.object as? [KMBatchOperateFile]
|
|
|
+ if let data = files?.first {
|
|
|
+ if data.currentOperateType != self.operateType {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let viewC = notification.userInfo?[kObjectKey] as? NSViewController
|
|
|
+ if let data = self.view.window?.isEqual(to: viewC?.view.window), data == false {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (!self.onlyManagerTemplate) {
|
|
|
let files: Array? = notification.object as? [KMBatchOperateFile]
|
|
|
self.files? = files ?? []
|