|
@@ -958,6 +958,10 @@ class KMProductCompareWC: NSWindowController {
|
|
}
|
|
}
|
|
|
|
|
|
func showDiscount() {
|
|
func showDiscount() {
|
|
|
|
+ discountYearly.isHidden = true
|
|
|
|
+ discountPermanent.isHidden = true
|
|
|
|
+ discountPermanent2.isHidden = true
|
|
|
|
+ discountPermanent.isHidden = true
|
|
#if VERSION_FREE
|
|
#if VERSION_FREE
|
|
#if VERSION_DMG
|
|
#if VERSION_DMG
|
|
// DMG
|
|
// DMG
|
|
@@ -970,9 +974,6 @@ class KMProductCompareWC: NSWindowController {
|
|
// AppStore 付费版
|
|
// AppStore 付费版
|
|
if model.state != .pro_Base { return }
|
|
if model.state != .pro_Base { return }
|
|
#endif
|
|
#endif
|
|
- discountYearly.isHidden = true
|
|
|
|
- discountPermanent.isHidden = true
|
|
|
|
-
|
|
|
|
let content = KMAdvertisementManager.manager.info.StoreUserRecovery?.content ?? []
|
|
let content = KMAdvertisementManager.manager.info.StoreUserRecovery?.content ?? []
|
|
if content.count > 0 {
|
|
if content.count > 0 {
|
|
for (index, item) in content.enumerated() {
|
|
for (index, item) in content.enumerated() {
|
|
@@ -980,11 +981,11 @@ class KMProductCompareWC: NSWindowController {
|
|
case 1:
|
|
case 1:
|
|
configureDiscountView(discountYearly, with: item)
|
|
configureDiscountView(discountYearly, with: item)
|
|
case 2:
|
|
case 2:
|
|
- configureDiscountView(discountPermanent, with: item)
|
|
|
|
|
|
+ configureDiscountView(discountPermanent4, with: item)
|
|
case 3:
|
|
case 3:
|
|
configureDiscountView(discountPermanent2, with: item)
|
|
configureDiscountView(discountPermanent2, with: item)
|
|
case 4:
|
|
case 4:
|
|
- configureDiscountView(discountPermanent4, with: item)
|
|
|
|
|
|
+ configureDiscountView(discountPermanent, with: item)
|
|
default:
|
|
default:
|
|
break
|
|
break
|
|
}
|
|
}
|