gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 26/35: debug, cleanup


From: gnunet
Subject: [taler-taler-ios] 26/35: debug, cleanup
Date: Thu, 27 Jul 2023 09:09:59 +0200

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 216b044e37379beac4c557a90acf459ac500abfa
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Jul 25 15:59:21 2023 +0200

    debug, cleanup
---
 TalerWallet1/Helper/playSound.swift                         |  2 +-
 TalerWallet1/Views/Exchange/ManualWithdraw.swift            |  2 +-
 TalerWallet1/Views/Peer2peer/SendAmount.swift               | 10 +++++-----
 TalerWallet1/Views/Transactions/TransactionDetailView.swift |  3 ---
 4 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/TalerWallet1/Helper/playSound.swift 
b/TalerWallet1/Helper/playSound.swift
index 834fe0b..0b4c428 100644
--- a/TalerWallet1/Helper/playSound.swift
+++ b/TalerWallet1/Helper/playSound.swift
@@ -12,10 +12,10 @@ extension Controller {
         if number < 999 {
             let sound = (number == 0) ? "payment_failure" :
                         (number == 1) ? "payment_success" : "PaymentReceived"
-            logger.log("\(sound, privacy: .public)")
             let fileURL = URL(fileURLWithPath: 
"/System/Library/Audio/UISounds/"
                               + sound + ".caf")
             AudioServicesCreateSystemSoundID(fileURL as CFURL, &soundID)
+            logger.log("\(sound, privacy: .public) \(soundID)")
         } else {
             soundID = UInt32(number)
         }
diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift 
b/TalerWallet1/Views/Exchange/ManualWithdraw.swift
index 5edf76b..2e2705e 100644
--- a/TalerWallet1/Views/Exchange/ManualWithdraw.swift
+++ b/TalerWallet1/Views/Exchange/ManualWithdraw.swift
@@ -82,7 +82,7 @@ struct ManualWithdraw: View {
             symLog.log("onAppear")
             DebugViewC.shared.setViewID(VIEW_WITHDRAWAL)
         }
-        .task(id: centsToTransfer) {
+        .task(id: centsToTransfer) { // re-run this whenever centsToTransfer 
changes
             let amount = Amount.amountFromCents(currency, centsToTransfer)
             do {
                 withdrawalAmountDetails = try await 
model.loadWithdrawalDetailsForAmountM(exchange.exchangeBaseUrl, amount: amount)
diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift 
b/TalerWallet1/Views/Peer2peer/SendAmount.swift
index 5686cd0..e979d73 100644
--- a/TalerWallet1/Views/Peer2peer/SendAmount.swift
+++ b/TalerWallet1/Views/Peer2peer/SendAmount.swift
@@ -110,9 +110,9 @@ struct SendAmount_Container : View {
     }
 }
 
-struct SendAmount_Previews: PreviewProvider {
-    static var previews: some View {
-        SendAmount_Container()
-    }
-}
+//struct SendAmount_Previews: PreviewProvider {
+//    static var previews: some View {
+//        SendAmount_Container()
+//    }
+//}
 #endif
diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift 
b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
index 3308ed0..594435e 100644
--- a/TalerWallet1/Views/Transactions/TransactionDetailView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
@@ -91,9 +91,6 @@ struct TransactionDetailView: View {
                     TransactionButton(transactionId: common.transactionId,
                                       command: .delete, action: deleteAction)
                 } } // Delete button
-//                if let doneAction {
-//                    DoneButton(doneAction: doneAction)
-//                } // Done button
             }.id(viewId)    // change viewId to enforce a draw update
             .listStyle(myListStyle.style).anyView
                 .safeAreaInset(edge: .bottom) {

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