Explorar el Código

Show Manage Subscription for lifetime premium users in the sidebar.

Lifetime purchasers should use the same actionable manage flow as subscribers instead of a non-interactive Premium Active state.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 hace 3 semanas
padre
commit
6a13d6bd8d
Se han modificado 1 ficheros con 2 adiciones y 8 borrados
  1. 2 8
      smart_printer/UIComponents.swift

+ 2 - 8
smart_printer/UIComponents.swift

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