Disable fiat indicator when balance is empty.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -25,6 +25,7 @@ public partial class WalletBalanceTileViewModel : TileViewModel
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionDate;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionStatus;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _showRecentTransaction;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _hasBalance;
[AutoNotify] private double _percentPrivate;
public WalletBalanceTileViewModel(Wallet wallet, IObservable<Unit> balanceChanged, ObservableCollection<HistoryItemViewModelBase> history)
@@ -51,7 +52,9 @@ public partial class WalletBalanceTileViewModel : TileViewModel
private void UpdateBalance()
{
- BalanceBtc = $"{_wallet.Coins.TotalAmount().ToFormattedString()} BTC";
+ var totalAmount = _wallet.Coins.TotalAmount();
+
+ BalanceBtc = $"{totalAmount.ToFormattedString()} BTC";
BalanceFiat = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC)
.GenerateFiatText(_wallet.Synchronizer.UsdExchangeRate, "USD");
@@ -63,6 +66,8 @@ public partial class WalletBalanceTileViewModel : TileViewModel
var privateDecimalAmount = privateCoins.TotalAmount();
var totalDecimalAmount = _wallet.Coins.TotalAmount();
+ HasBalance = totalAmount > Money.Zero;
+
BalancePrivateBtc = privateDecimalAmount
.FormattedBtc() + " BTC";

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceTileView.axaml
<DockPanel>
<TextBlock Text="BALANCE" DockPanel.Dock="Top" Classes="h8 bold" />
- <StackPanel DockPanel.Dock="Bottom" Height="25" Spacing="8">
+ <StackPanel DockPanel.Dock="Bottom" Height="25" Spacing="8" IsVisible="{Binding HasBalance}">
<Separator />
<StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center">
<controls:PrivacyContentControl Classes="h9 bold" NumberOfPrivacyChars="9" Margin="4"

Disable fiat indicator when balance is empty.