commit 92030e5e072e07081c0baa810acda6ba3a0f10d7 parent 2c014b5e92222e90f8c07b689809b3812ed8a2b6 Author: Marc Stibane <marc@taler.net> Date: Sat, 10 Oct 2026 19:38:10 +0200 AI: error handling Diffstat:
| M | TalerWallet1/Views/Settings/BackupView.swift | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Settings/BackupView.swift b/TalerWallet1/Views/Settings/BackupView.swift @@ -46,7 +46,13 @@ struct BackupView: View { self.progress = 1 } controller.hapticFeedback(.medium) - } catch {} + } catch { + // the error was already shown (viewHandles: false) - back to the list of backups + withAnimation { + self.isRestoring = false + self.progress = 0 + } + } } }