commit d5f220a29f9c09363c867a0ebd136a62d91eb520
parent 0299ba8f4c739ad52d81bd0243ac4212052f033d
Author: Marc Stibane <marc@taler.net>
Date: Tue, 4 Aug 2026 11:47:58 +0200
add stage/prod to debug picker
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/ScopePicker.swift b/TalerWallet1/Views/HelperViews/ScopePicker.swift
@@ -41,7 +41,8 @@ struct CurrencyPicker: View {
Picker(EMPTYSTRING, selection: $selected) {
ForEach(0..<count, id: \.self) { index in
let exchange = exchanges[index]
- Text(exchange.currencySpec.name)
+ let base = index == 0 ? " (stage)" : " (prod)"
+ Text(exchange.currencySpec.name + base)
.tag(index)
}
}
diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift
@@ -79,7 +79,6 @@ struct ProdSectionView: View {
.talerFont(.body)
#endif
if (showRealCashHint) {
-#if !TALER_WALLET
if developerMode {
if defaultExchanges.count > 1 {
CurrencyPicker(stack: stack.push(), value: $selectedCurrency,
@@ -88,7 +87,6 @@ struct ProdSectionView: View {
}
}
}
-#endif
let defaultExchange = defaultExchanges[selectedCurrency < count ? selectedCurrency : 0]
let currency = defaultExchange.currency
let title = String(localized: "LinkTitle_Withdraw", defaultValue: "Withdraw \(currency)")