[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 01/03: Sounds Off by default
From: |
gnunet |
Subject: |
[taler-taler-ios] 01/03: Sounds Off by default |
Date: |
Thu, 15 Feb 2024 13:51:04 +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 2d7ffab1dde7f5c0255a0db2e7d4544e4cfd2b55
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Feb 15 13:46:24 2024 +0100
Sounds Off by default
---
TalerWallet1/Controllers/Controller.swift | 2 +-
TalerWallet1/Views/Main/MainView.swift | 6 +++---
TalerWallet1/Views/Settings/SettingsView.swift | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Controllers/Controller.swift
b/TalerWallet1/Controllers/Controller.swift
index 6e18cd1..cc8d3f0 100644
--- a/TalerWallet1/Controllers/Controller.swift
+++ b/TalerWallet1/Controllers/Controller.swift
@@ -37,7 +37,7 @@ class Controller: ObservableObject {
@Published var currencyTicker: Int = 0 // updates
whenever a new currency is added
@AppStorage("useHaptics") var useHaptics: Bool = true // 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
- @AppStorage("playSoundsB") var playSoundsB: Bool = true
+ @AppStorage("playSoundsB") var playSoundsB: Bool = false
@AppStorage("talerFontIndex") var talerFontIndex: Int = 0 //
extension mustn't define this, so it must be here
let hapticCapability = CHHapticEngine.capabilitiesForHardware()
let logger = Logger(subsystem: "net.taler.gnu", category: "Controller")
diff --git a/TalerWallet1/Views/Main/MainView.swift
b/TalerWallet1/Views/Main/MainView.swift
index 0c22e73..df13198 100644
--- a/TalerWallet1/Views/Main/MainView.swift
+++ b/TalerWallet1/Views/Main/MainView.swift
@@ -21,9 +21,9 @@ struct MainView: View {
@Binding var soundPlayed: Bool
@EnvironmentObject private var controller: Controller
- @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
- @AppStorage("playSoundsB") var playSoundsB: Bool = true
+ @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
+ @AppStorage("playSoundsB") var playSoundsB: Bool = false
@State private var sheetPresented = false
@State private var urlToOpen: URL? = nil
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift
b/TalerWallet1/Views/Settings/SettingsView.swift
index e2624d6..28e82eb 100644
--- a/TalerWallet1/Views/Settings/SettingsView.swift
+++ b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -30,7 +30,7 @@ struct SettingsView: View {
#endif
@AppStorage("useHaptics") var useHaptics: Bool = true
@AppStorage("playSoundsI") var playSoundsI: Int = 1
- @AppStorage("playSoundsB") var playSoundsB: Bool = true
+ @AppStorage("playSoundsB") var playSoundsB: Bool = false
@AppStorage("shouldShowWarning") var shouldShowWarning: Bool = true
// @AppStorage("increaseContrast") var increaseContrast: Bool = false
@AppStorage("talerFontIndex") var talerFontIndex: Int = 0
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.