gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 01/36: Startup Chime


From: gnunet
Subject: [taler-taler-ios] 01/36: Startup Chime
Date: Mon, 13 Nov 2023 21:27:06 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

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

    Startup Chime
---
 TalerWallet1/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
index 128f214..179173f 100644
--- 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 {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]