gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 15/32: githash 7 chars


From: gnunet
Subject: [taler-taler-ios] 15/32: githash 7 chars
Date: Sat, 10 Feb 2024 15:04:41 +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 a96b0f3b0bbf46cead8cba8201b8a0e3ddb93594
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Feb 4 14:58:29 2024 +0100

    githash 7 chars
---
 TalerWallet1/Views/Settings/AboutView.swift | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Settings/AboutView.swift 
b/TalerWallet1/Views/Settings/AboutView.swift
index 5ccdb27..eb7d8a7 100644
--- a/TalerWallet1/Views/Settings/AboutView.swift
+++ b/TalerWallet1/Views/Settings/AboutView.swift
@@ -52,7 +52,12 @@ struct AboutView: View {
                 Group {
                     if showGitHash {
                         SettingsItem(name: "Wallet-Core Git", id1: 
"wallet-coreG") {
-                            Text(verbatim: 
"\(walletCore.versionInfo?.implementationGitHash ?? "unknown")")
+                            if let gitHash = 
walletCore.versionInfo?.implementationGitHash {
+                                let index = gitHash.index(gitHash.startIndex, 
offsetBy: 7)
+                                Text(gitHash[..<index])
+                            } else {
+                                Text(verbatim: "unknown")
+                            }
                         }
                     } else {
                         SettingsItem(name: "Wallet-Core Version", id1: 
"wallet-coreV") {

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