[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 181/204: don't update if same data
From: |
gnunet |
Subject: |
[taler-taler-ios] 181/204: don't update if same data |
Date: |
Thu, 05 Dec 2024 23:52:29 +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 c1a24c21f7bd3766308281469eceeb23da8f58d3
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Dec 3 23:05:09 2024 +0100
don't update if same data
---
TalerWallet1/Controllers/Controller.swift | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/TalerWallet1/Controllers/Controller.swift
b/TalerWallet1/Controllers/Controller.swift
index 2d4fe59..6a83ee5 100755
--- a/TalerWallet1/Controllers/Controller.swift
+++ b/TalerWallet1/Controllers/Controller.swift
@@ -121,11 +121,16 @@ class Controller: ObservableObject {
@discardableResult
func loadBalances(_ stack: CallStack,_ model: WalletModel) async -> Int? {
if let reloaded = try? await model.getBalances(stack.push()) {
- for balance in reloaded {
- let scope = balance.scopeInfo
- checkInfo(for: scope, model: model)
+ if reloaded != balances {
+ for balance in reloaded {
+ let scope = balance.scopeInfo
+ checkInfo(for: scope, model: model)
+ }
+ self.logger.log("••Got new balances, will redraw")
+ balances = reloaded // redraw
+ } else {
+ self.logger.log("••Same balances, no redraw")
}
- balances = reloaded // redraw
return reloaded.count
}
return nil
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 168/204: wording, (continued)
- [taler-taler-ios] 168/204: wording, gnunet, 2024/12/05
- [taler-taler-ios] 170/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 169/204: debug, gnunet, 2024/12/05
- [taler-taler-ios] 138/204: recvDisabled, gnunet, 2024/12/05
- [taler-taler-ios] 172/204: a11y for tabBar, gnunet, 2024/12/05
- [taler-taler-ios] 173/204: update after +, gnunet, 2024/12/05
- [taler-taler-ios] 174/204: only in debug mode, gnunet, 2024/12/05
- [taler-taler-ios] 176/204: cleanup, comments, gnunet, 2024/12/05
- [taler-taler-ios] 179/204: Bump version to 0.13.8 (0.13.13), gnunet, 2024/12/05
- [taler-taler-ios] 180/204: Comparable, gnunet, 2024/12/05
- [taler-taler-ios] 181/204: don't update if same data,
gnunet <=
- [taler-taler-ios] 188/204: regional exchange baseURL, gnunet, 2024/12/05
- [taler-taler-ios] 182/204: L10N helper, gnunet, 2024/12/05
- [taler-taler-ios] 184/204: don't add to knownBankAccounts, gnunet, 2024/12/05
- [taler-taler-ios] 190/204: timeToPay w.i.p., gnunet, 2024/12/05
- [taler-taler-ios] 191/204: layout, legal hint, gnunet, 2024/12/05
- [taler-taler-ios] 194/204: A11y, gnunet, 2024/12/05
- [taler-taler-ios] 136/204: Available for transfer, gnunet, 2024/12/05
- [taler-taler-ios] 192/204: layout, gnunet, 2024/12/05
- [taler-taler-ios] 196/204: Nav header, gnunet, 2024/12/05
- [taler-taler-ios] 189/204: AccountPicker, gnunet, 2024/12/05