commit 885fcb4437514a6d10f648230f2e0735bbfaea7d
parent 77e69037b1c86de7013962a3751cd4cde884ff39
Author: Marc Stibane <marc@taler.net>
Date: Sun, 1 Mar 2026 22:07:55 +0100
cleanup
Diffstat:
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift
@@ -18,15 +18,15 @@ struct MainView: View {
let stack: CallStack
@Binding var soundPlayed: Bool
+ @EnvironmentObject private var controller: Controller
+ @EnvironmentObject private var model: WalletModel
+ @EnvironmentObject private var biometricService: BiometricService
+
#if DEBUG
@AppStorage("developerMode") var developerMode: Bool = true
#else
@AppStorage("developerMode") var developerMode: Bool = false
#endif
-
- @EnvironmentObject private var controller: Controller
- @EnvironmentObject private var model: WalletModel
- @EnvironmentObject private var biometricService: BiometricService
@AppStorage("minimalistic") var minimalistic: Bool = false
@AppStorage("talerFontIndex") var talerFontIndex: Int = 0 // extension mustn't define this, so it must be here
@AppStorage("playSoundsI") var playSoundsI: Int = 1 // extension mustn't define this, so it must be here
@@ -365,7 +365,7 @@ extension MainView {
@Binding var showActionSheet: Bool
@Binding var showScanner: Bool
@Binding var qrButtonTapped: Bool
- @Binding var userAction: Int
+ @Binding var userAction: Int // make Action button jump
@EnvironmentObject private var controller: Controller
@EnvironmentObject private var model: WalletModel
diff --git a/TalerWallet1/Views/Settings/Bank/BankListView.swift b/TalerWallet1/Views/Settings/Bank/BankListView.swift
@@ -52,8 +52,6 @@ struct BankListView: View {
let plusButton = PlusButton(accessibilityLabelStr: a11yLabelStr) {
showAddDialog = true
}
- let addTitleStr = String(localized: "Add bank account", comment: "title of the addExchange alert")
- let addButtonStr = String(localized: "Add", comment: "button in the addExchange alert")
let depositHint = Text("You can only deposit to a bank account that you control, otherwise you will not be able to fulfill the regulatory requirements.")