[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.
- [taler-taler-ios] 43/204: no Cancel for sheets, (continued)
- [taler-taler-ios] 43/204: no Cancel for sheets, gnunet, 2024/12/05
- [taler-taler-ios] 51/204: scope, gnunet, 2024/12/05
- [taler-taler-ios] 45/204: pull-to-refresh haptics, gnunet, 2024/12/05
- [taler-taler-ios] 47/204: RotatingTaler for demo money, gnunet, 2024/12/05
- [taler-taler-ios] 49/204: wording, gnunet, 2024/12/05
- [taler-taler-ios] 56/204: innerHeight, gnunet, 2024/12/05
- [taler-taler-ios] 60/204: Bump version to 0.13.4 (0.13.6), gnunet, 2024/12/05
- [taler-taler-ios] 55/204: cleanup, docu, gnunet, 2024/12/05
- [taler-taler-ios] 59/204: Layout, wording, gnunet, 2024/12/05
- [taler-taler-ios] 61/204: arrrow names & icons, gnunet, 2024/12/05
- [taler-taler-ios] 34/204: hideSpendingHint,
gnunet <=
- [taler-taler-ios] 65/204: ScopeDropDown, gnunet, 2024/12/05
- [taler-taler-ios] 66/204: cleanup, remove warning, gnunet, 2024/12/05
- [taler-taler-ios] 28/204: dropBar, padding, gnunet, 2024/12/05
- [taler-taler-ios] 27/204: dismiss, gnunet, 2024/12/05
- [taler-taler-ios] 25/204: layout - smaller font, gnunet, 2024/12/05
- [taler-taler-ios] 36/204: QRButton in Actions, gnunet, 2024/12/05
- [taler-taler-ios] 29/204: getMaxPeerPushDebitAmountM for available, gnunet, 2024/12/05
- [taler-taler-ios] 39/204: A11y for amounts, gnunet, 2024/12/05
- [taler-taler-ios] 41/204: ScopePicker, gnunet, 2024/12/05
- [taler-taler-ios] 35/204: layout itself, gnunet, 2024/12/05