Explorar o código

Remove redundant Restore Purchase row from Settings.

Restore remains available on the paywall, so the duplicate settings entry is unnecessary.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 hai 3 semanas
pai
achega
100d7a1ba2
Modificáronse 1 ficheiros con 0 adicións e 18 borrados
  1. 0 18
      smart_printer/SettingsView.swift

+ 0 - 18
smart_printer/SettingsView.swift

@@ -151,24 +151,6 @@ final class SettingsView: NSView, AppearanceRefreshable {
             })
         }
 
-        let config = PaywallConfigService.shared.config
-        rows.append(SettingsActionRow(symbolName: "arrow.clockwise", title: config.footer.restorePurchase) {
-            Task { @MainActor in
-                let store = StoreManager.shared
-                store.clearPurchaseError()
-                let restored = await store.restorePurchases()
-                if restored {
-                    store.showAlert(
-                        title: config.messages.restoreSuccessTitle,
-                        message: config.messages.restoreSuccessMessage,
-                        on: NSApp.keyWindow
-                    )
-                } else if let error = store.purchaseError {
-                    store.showPurchaseError(error, on: NSApp.keyWindow)
-                }
-            }
-        })
-
         rows.append(SettingsActionRow(symbolName: "link", title: "Website") {
             NSWorkspace.shared.open(URL(string: "https://sites.google.com/view/smartprinterappmacos/home")!)
         })