gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 25/35: Simplified


From: gnunet
Subject: [taler-taler-ios] 25/35: Simplified
Date: Thu, 27 Jul 2023 09:09:58 +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 0b3bab014a73562a1b1259b67d5bc95bb4486588
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Jul 24 16:51:45 2023 +0200

    Simplified
---
 .../Views/Settings/Pending/PendingOpsListView.swift    | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift 
b/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift
index 55cf5c7..2612eea 100644
--- a/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift
+++ b/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift
@@ -6,7 +6,6 @@ import SwiftUI
 import SymLog
 
 struct PendingOpsListView: View {
-    private let symLog = SymLogV(0)
     let navTitle = String(localized: "Pending")
 
     @EnvironmentObject private var model: WalletModel
@@ -14,15 +13,10 @@ struct PendingOpsListView: View {
     @State var pendingOperations: [PendingOperation] = []
 
     var body: some View {
-#if DEBUG
-        let _ = Self._printChanges()
-        let _ = symLog.vlog()       // just to get the # to compare it with 
.onAppear & onDisappear
-#endif
         let reloadAction = model.getPendingOperationsM
-        Content(symLog: symLog, pendingOperations: $pendingOperations, 
reloadAction: reloadAction)
+        Content(pendingOperations: $pendingOperations, reloadAction: 
reloadAction)
             .navigationTitle(navTitle)
             .task {
-                symLog.log(".task")
                 pendingOperations = await reloadAction()
             }
     }
@@ -30,16 +24,11 @@ struct PendingOpsListView: View {
 // MARK: -
 extension PendingOpsListView {
     struct Content: View {
-        let symLog: SymLogV?
         @Binding var pendingOperations: [PendingOperation]
         var reloadAction: () async -> [PendingOperation]
         @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
         var body: some View {
-#if DEBUG
-            let _ = Self._printChanges()
-            let _ = symLog?.vlog()       // just to get the # to compare it 
with .onAppear & onDisappear
-#endif
-            ScrollViewReader { scrollView in
+//            ScrollViewReader { scrollView in
                 List(pendingOperations, id: \.self) { pendingOp in
                     PendingOpView(pendingOp: pendingOp)
                 }
@@ -48,10 +37,9 @@ extension PendingOpsListView {
                     DebugViewC.shared.setViewID(VIEW_PENDING)
                 }
                 .refreshable {
-                    symLog?.log("refreshing")
                     pendingOperations = await reloadAction()
                 }
-            }
+//            }
         }
     }
 }

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