|
@@ -1841,6 +1841,7 @@ extension KMMainViewController {
|
|
|
} else if (type == .conversion_image) {
|
|
|
windowController = KMConvertImageWindowController()
|
|
|
}
|
|
|
+ windowController?.subscribeWaterMarkType = type.toSubscribeWaterMarkType()
|
|
|
|
|
|
var url: URL?
|
|
|
if (documentUrl != nil) {
|
|
@@ -2402,39 +2403,6 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
|
identifier = KMToolbarConversionImageItemIdentifier
|
|
|
}
|
|
|
|
|
|
-// if await (KMLightMemberManager.manager.canPayFunction() == false) {
|
|
|
-// let _ = KMSubscribeWaterMarkWindowController.show(window: self.view.window!, isContinue: true, type: type.toSubscribeWaterMarkType()) { isSubscribeSuccess, isWaterMarkExport, isClose in
|
|
|
-// if (isClose) {
|
|
|
-// return
|
|
|
-// }
|
|
|
-// if (isSubscribeSuccess) {
|
|
|
-// self.showConvertWindow(type: type, identifier: identifier)
|
|
|
-// return
|
|
|
-// }
|
|
|
-// if (isWaterMarkExport) {
|
|
|
-// DispatchQueue.main.async {
|
|
|
-// NSPanel.savePanel(self.view.window!, panel:{ panel in
|
|
|
-//// if (!self.my) {
|
|
|
-// panel.directoryURL = self.document?.documentURL.deletingLastPathComponent()
|
|
|
-//// }
|
|
|
-//
|
|
|
-// panel.nameFieldStringValue = (self.document?.documentURL.lastPathComponent)!
|
|
|
-// }) { response, url in
|
|
|
-// if (response == .cancel) {
|
|
|
-// return
|
|
|
-// }
|
|
|
-// self.commitEditingIfNeed()
|
|
|
-// guard let _url = KMTools.saveWatermarkDocument(document: self.document!, to: url!, secureOptions: self.secureOptions, removePWD: self.removeSecureFlag) else {
|
|
|
-// return
|
|
|
-// }
|
|
|
-// self.showConvertWindow(type: type, documentUrl: _url, identifier: identifier)
|
|
|
-// }
|
|
|
-// }
|
|
|
-// return
|
|
|
-// }
|
|
|
-// }
|
|
|
-// return
|
|
|
-// }
|
|
|
if await (KMLightMemberManager.manager.canPayFunction() == false) {
|
|
|
guard let _url = KMTools.saveWatermarkDocumentToTemp(document: self.listView.document, secureOptions: self.secureOptions, removePWD: self.removeSecureFlag) else {
|
|
|
return
|