commit 7710002b98613158aae5ff836ef5207ac3b3c229
parent 26f517a2fd032d52817409652078f7bcfddfb7b0
Author: Marc Stibane <marc@taler.net>
Date: Sun, 15 Jun 2025 10:31:13 +0200
Enable backup
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -125,6 +125,17 @@ struct SettingsView: View {
description: minimalistic ? nil : String(localized: "Protect your money")) {
biometricService.isAuthenticated = false
}
+#if TALER_NIGHTLY || DEBUG
+ let backupTitle = String(localized: "TitleBackup", defaultValue: "Backup / Restore")
+ let backupDest = BackupView(stack: stack.push(backupTitle),
+ navTitle: backupTitle)
+ NavigationLink { // whole row like in a tableView
+ backupDest
+ } label: {
+ SettingsItem(name: backupTitle, id1: "backup",
+ description: hideDescriptions ? nil : String(localized: "Backup your money...")) {}
+ }
+#endif
SettingsToggle(name: String(localized: "Minimalistic"), value: $minimalistic, id1: "minimal",
description: hideDescriptions ? nil : String(localized: "Omit text where possible")) {
hideDescriptions = minimalistic //withAnimation { hideDescriptions = minimalistic }