Show exchange rate for BTC/USD as "Loading..." rather than "$0" at initialization.
MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -31,6 +31,8 @@ namespace WalletWasabi.Gui.ViewModels
{
public class StatusBarViewModel : ViewModelBase
{
+ private const string LoadingText = "Loading ...";
+
private RpcStatus _bitcoinCoreStatus;
private UpdateStatus _updateStatus;
private bool _updateAvailable;
@@ -62,7 +64,7 @@ namespace WalletWasabi.Gui.ViewModels
UseTor = false;
Tor = TorStatus.NotRunning;
Peers = 0;
- BtcPrice = "$0";
+ _btcPrice = LoadingText;
ActiveStatuses = new StatusSet();
}
@@ -260,7 +262,17 @@ namespace WalletWasabi.Gui.ViewModels
Synchronizer.WhenAnyValue(x => x.UsdExchangeRate)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(usd => BtcPrice = $"${(long)usd}")
+ .Subscribe(usd =>
+ {
+ if (usd == default)
+ {
+ BtcPrice = LoadingText;
+ }
+ else
+ {
+ BtcPrice = $"${(long)usd}";
+ }
+ })
.DisposeWith(Disposables);
if (rpcMonitor is { })

Show exchange rate for BTC/USD as "Loading..." rather than "$0" at initialization.