|
@@ -259,13 +259,8 @@ final class SidebarPremiumCardView: NSView, AppearanceRefreshable {
|
|
|
let actionTitle: String
|
|
let actionTitle: String
|
|
|
let showsArrow: Bool
|
|
let showsArrow: Bool
|
|
|
if isPremium {
|
|
if isPremium {
|
|
|
- if StoreManager.shared.hasLifetimeAccess {
|
|
|
|
|
- actionTitle = sidebar.lifetimeAction
|
|
|
|
|
- showsArrow = false
|
|
|
|
|
- } else {
|
|
|
|
|
- actionTitle = sidebar.manageSubscriptionAction
|
|
|
|
|
- showsArrow = true
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ actionTitle = sidebar.manageSubscriptionAction
|
|
|
|
|
+ showsArrow = true
|
|
|
} else {
|
|
} else {
|
|
|
actionTitle = sidebar.upgradeAction
|
|
actionTitle = sidebar.upgradeAction
|
|
|
showsArrow = true
|
|
showsArrow = true
|
|
@@ -314,7 +309,6 @@ final class SidebarPremiumCardView: NSView, AppearanceRefreshable {
|
|
|
actionButton.onClick = { [weak self] in
|
|
actionButton.onClick = { [weak self] in
|
|
|
guard let self else { return }
|
|
guard let self else { return }
|
|
|
if self.isPremium {
|
|
if self.isPremium {
|
|
|
- guard StoreManager.shared.hasActiveSubscription else { return }
|
|
|
|
|
self.onManageSubscriptionTapped?()
|
|
self.onManageSubscriptionTapped?()
|
|
|
} else {
|
|
} else {
|
|
|
self.onUpgradeTapped?()
|
|
self.onUpgradeTapped?()
|