|
@@ -1235,10 +1235,6 @@ struct KMNMWCFlags {
|
|
|
|
|
|
//MARK: - PPT
|
|
|
func togglePresentation(_ sender: Any?) {
|
|
|
- if KMMemberInfo.shared.isLogin == false {
|
|
|
- KMLoginWindowsController.shared.showWindow(nil)
|
|
|
- return
|
|
|
- }
|
|
|
if self.canExitPresentation() {
|
|
|
exitFullScreen()
|
|
|
} else if self.canEnterPresentation() {
|
|
@@ -3946,9 +3942,8 @@ extension KMMainViewController {
|
|
|
}
|
|
|
|
|
|
private func _showOCRWindow() {
|
|
|
- if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
- let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
- winC?.showWindow(nil)
|
|
|
+ if KMMemberInfo.shared.isLogin == false {
|
|
|
+ KMLoginWindowsController.shared.showWindow(nil)
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -8926,21 +8921,25 @@ extension KMMainViewController {
|
|
|
}
|
|
|
guideWC.purchaseHandle = { [weak self] windowVC in
|
|
|
#if VERSION_DMG
|
|
|
- if IAPProductsManager.default().isAvailableAllFunction() {
|
|
|
- if IAPProductsManager.default().isAvailableAdvancedPDFToOffice() {
|
|
|
- //Convert:
|
|
|
-
|
|
|
- } else {
|
|
|
- let limitWC = KMPurchaseLimitWindowController.currentLimitWC()
|
|
|
- limitWC.continueBlock = { windowController in
|
|
|
-
|
|
|
- }
|
|
|
- limitWC.window?.center()
|
|
|
- limitWC.showWindow(nil)
|
|
|
- }
|
|
|
- } else {
|
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ if KMMemberInfo.shared.isLogin == false {
|
|
|
+ KMLoginWindowsController.shared.showWindow(nil)
|
|
|
+ return
|
|
|
}
|
|
|
+// if IAPProductsManager.default().isAvailableAllFunction() {
|
|
|
+// if IAPProductsManager.default().isAvailableAdvancedPDFToOffice() {
|
|
|
+// //Convert:
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// let limitWC = KMPurchaseLimitWindowController.currentLimitWC()
|
|
|
+// limitWC.continueBlock = { windowController in
|
|
|
+//
|
|
|
+// }
|
|
|
+// limitWC.window?.center()
|
|
|
+// limitWC.showWindow(nil)
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+// }
|
|
|
#else
|
|
|
if IAPProductsManager.default().isAvailableAllFunction() {
|
|
|
if IAPProductsManager.default().isAvailableAdvancedPDFToOffice() {
|