浏览代码

Premium footer: show Continue with free plan and dismiss to home

Renames the non-pro primary footer action from "Try Pro" to
"Continue with free plan" and, when tapped, ends the paywall sheet so
the user returns to the dashboard instead of remaining on the paywall.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 月之前
父节点
当前提交
3e6f4348bb
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      App for Indeed/Controllers/PremiumPlansWindowController.swift

+ 4 - 3
App for Indeed/Controllers/PremiumPlansWindowController.swift

@@ -578,11 +578,11 @@ private final class PremiumPlansViewController: NSViewController {
 
     private enum PrimaryFooterSubscriptionTitle {
         static let manage = "Manage Subscription"
-        static let tryPro = "Try Pro"
+        static let continueFree = "Continue with free plan"
     }
 
     private func subscriptionPrimaryFooterTitle() -> String {
-        subscriptionStore.isProActive ? PrimaryFooterSubscriptionTitle.manage : PrimaryFooterSubscriptionTitle.tryPro
+        subscriptionStore.isProActive ? PrimaryFooterSubscriptionTitle.manage : PrimaryFooterSubscriptionTitle.continueFree
     }
 
     private func updateSubscriptionPrimaryFooter() {
@@ -645,7 +645,8 @@ private final class PremiumPlansViewController: NSViewController {
                 NSWorkspace.shared.open(url)
                 return
             }
-            // "Try Pro" while this paywall is visible: stay on the paywall (do not dismiss the sheet).
+            // Non-pro: dismiss paywall and return to the home (dashboard) window.
+            dismissPremiumSheetFromParentIfNeeded()
         }
     }