|
|
@@ -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")!)
|
|
|
})
|