|
@@ -328,9 +328,8 @@ class KMProductCompareWC: NSWindowController {
|
|
showDiscountToSaveWindow()
|
|
showDiscountToSaveWindow()
|
|
}
|
|
}
|
|
reloadDataContent()
|
|
reloadDataContent()
|
|
-
|
|
|
|
|
|
+
|
|
showDiscount()
|
|
showDiscount()
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// MARK: - Private Methods
|
|
// MARK: - Private Methods
|
|
@@ -959,6 +958,18 @@ class KMProductCompareWC: NSWindowController {
|
|
}
|
|
}
|
|
|
|
|
|
func showDiscount() {
|
|
func showDiscount() {
|
|
|
|
+#if VERSION_FREE
|
|
|
|
+#if VERSION_DMG
|
|
|
|
+ // DMG
|
|
|
|
+ if model.state != .dmg_Base { return }
|
|
|
|
+#else
|
|
|
|
+ // AppStore 免费版本
|
|
|
|
+ if model.state != .lite_Base { return }
|
|
|
|
+#endif
|
|
|
|
+#else
|
|
|
|
+ // AppStore 付费版
|
|
|
|
+ if model.state != .pro_Base { return }
|
|
|
|
+#endif
|
|
discountYearly.isHidden = true
|
|
discountYearly.isHidden = true
|
|
discountPermanent.isHidden = true
|
|
discountPermanent.isHidden = true
|
|
|
|
|