|
@@ -125,7 +125,12 @@ class KMSubscribeWaterMarkWindowController: NSWindowController {
|
|
|
}
|
|
|
|
|
|
subscribeWaterMarkWindowController.watermarkExportAction = { controller in
|
|
|
- completion(false, true, false)
|
|
|
+ if type.isConvertType() && !KMLightMemberManager.manager.isLogin() {
|
|
|
+ completion(false, false, true)
|
|
|
+ } else {
|
|
|
+ completion(false, true, false)
|
|
|
+ }
|
|
|
+
|
|
|
subscribeWaterMarkMainWindow?.endSheet(controller.window!)
|
|
|
controller.window?.close()
|
|
|
subscribeWaterMarkController = nil
|
|
@@ -150,16 +155,16 @@ class KMSubscribeWaterMarkWindowController: NSWindowController {
|
|
|
}
|
|
|
|
|
|
if isContinue {
|
|
|
- if type == .merge {
|
|
|
- subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
|
|
|
- } else {
|
|
|
- subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save and Continue", comment: "")
|
|
|
- }
|
|
|
+ subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
|
|
|
} else {
|
|
|
if type == .merge {
|
|
|
- subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Delete from the file list.", comment: "")
|
|
|
+ subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Delete From the File List", comment: "")
|
|
|
} else if type.isConvertType() {
|
|
|
- subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Convert First 10 Pages", comment: "")
|
|
|
+ if KMLightMemberManager.manager.isLogin() {
|
|
|
+ subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Convert First 10 Pages", comment: "")
|
|
|
+ } else {
|
|
|
+ subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Cancel", comment: "")
|
|
|
+ }
|
|
|
} else {
|
|
|
subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
|
|
|
}
|
|
@@ -211,7 +216,7 @@ class KMSubscribeWaterMarkWindowController: NSWindowController {
|
|
|
if KMLightMemberManager.manager.isLogin() {
|
|
|
self.waterViewHeightConstrain.constant = 624
|
|
|
} else {
|
|
|
- self.waterViewHeightConstrain.constant = 505
|
|
|
+ self.waterViewHeightConstrain.constant = 485
|
|
|
}
|
|
|
}
|
|
|
|