taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 27dd64c82affb8fa11831eaadbaa1fa1a9713968
parent e082595240ff3d82c54eecdd9fa0d6868339e5f9
Author: Marc Stibane <marc@taler.net>
Date:   Thu,  9 Nov 2023 14:08:31 +0100

Startup Chime

Diffstat:
MTalerWallet1/Views/Main/MainView.swift | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -24,6 +24,7 @@ struct MainView: View { @State private var urlToOpen: URL? = nil @Binding var soundPlayed: Bool @AppStorage("talerFont") var talerFont: Int = 0 // extension mustn't define this, so it must be here + @AppStorage("playSounds") var playSounds: Int = 1 // extension mustn't define this, so it must be here func sheetDismissed() -> Void { symLog.log("sheet dismiss") @@ -39,7 +40,9 @@ struct MainView: View { // any change to rootViewId triggers popToRootView behaviour .id(viewState.rootViewId) .onAppear() { - controller.playSound(1008) // Startup chime + if playSounds != 0 { + controller.playSound(1008) // Startup chime + } soundPlayed = true } } else if controller.backendState == .error {