gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 34/204: hideSpendingHint


From: gnunet
Subject: [taler-taler-ios] 34/204: hideSpendingHint
Date: Thu, 05 Dec 2024 23:50:02 +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 3297eacecdb2e5e0b4084270f5e49407a8d61541
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Oct 8 07:14:07 2024 +0200

    hideSpendingHint
---
 TalerWallet1/Views/Actions/ActionsSheet.swift        | 5 +++--
 TalerWallet1/Views/Banking/ExchangeSectionView.swift | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift 
b/TalerWallet1/Views/Actions/ActionsSheet.swift
index a828a1a..968f2f7 100644
--- a/TalerWallet1/Views/Actions/ActionsSheet.swift
+++ b/TalerWallet1/Views/Actions/ActionsSheet.swift
@@ -21,6 +21,7 @@ struct ActionsSheet: View {
     let cameraAction: () -> Void
 
     @AppStorage("minimalistic") var minimalistic: Bool = false
+    @AppStorage("hideSpendingHint") var hideSpendingHint: Bool = false
 
     private var hasKudos: Bool {
         for balance in balances {
@@ -48,7 +49,7 @@ struct ActionsSheet: View {
                 .frame(width: width + 6.5, height: 5)
                 .padding(.bottom, 10)
 
-            if hasKudos {
+            if hasKudos && !hideSpendingHint {
                 if !minimalistic && showSpendingHint {
                     Text("You can spend your \(DEMOCURRENCY) in the Demo shop, 
or send them to another wallet.")
                         .talerFont(.body)
@@ -57,7 +58,7 @@ struct ActionsSheet: View {
                 }
                 let title = String(localized: "LinkTitle_DEMOSHOP", 
defaultValue: "Spend demo money")
                 let action = {
-                    showSpendingHint = false
+                    hideSpendingHint = true
                     UIApplication.shared.open(URL(string:DEMOSHOP)!, options: 
[:])
                     dismissTop(stack.push())
                 }
diff --git a/TalerWallet1/Views/Banking/ExchangeSectionView.swift 
b/TalerWallet1/Views/Banking/ExchangeSectionView.swift
index e7126af..d05a629 100755
--- a/TalerWallet1/Views/Banking/ExchangeSectionView.swift
+++ b/TalerWallet1/Views/Banking/ExchangeSectionView.swift
@@ -24,6 +24,7 @@ struct ExchangeSectionView: View {
     @EnvironmentObject private var model: WalletModel
     @EnvironmentObject private var controller: Controller
     @AppStorage("minimalistic") var minimalistic: Bool = false
+    @AppStorage("hideSpendingHint") var hideSpendingHint: Bool = false
 
     @State private var shouldReloadBalances: Int = 0
     @State private var currencyInfo: CurrencyInfo = CurrencyInfo.zero(UNKNOWN)
@@ -61,6 +62,7 @@ struct ExchangeSectionView: View {
                 didDelete = true             // change button text
                 NotificationCenter.default.post(name: .ExchangeDeleted, 
object: nil, userInfo: nil)
                 NotificationCenter.default.post(name: .BalanceChange, object: 
nil, userInfo: nil)
+                hideSpendingHint = false
             } else {
                 purge = true
                 showAlert = true

-- 
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]