show BTC price in status bar
MODIFY
WalletWasabi.Gui/Controls/StatusBar.xaml
WalletWasabi.Gui/Controls/StatusBar.xaml
<TextBlock>Mempool:</TextBlock>
<TextBlock Text="{Binding Mempool}" />
</StackPanel>
+
+ <StackPanel Orientation="Horizontal" Spacing="0" IsVisible="{Binding !CriticalUpdateAvailable}">
+ <TextBlock Text="Price: "/>
+ <TextBlock Text="{Binding BtcPrice}"/>
+ </StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" Spacing="4">

MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -141,6 +141,15 @@ namespace WalletWasabi.Gui.ViewModels
}
}
+ public string BtcPrice
+ {
+ get => _btcPrice;
+ set
+ {
+ this.RaiseAndSetIfChanged(ref _btcPrice, value);
+ }
+ }
+
private string _status;
public string Status
@@ -239,6 +248,10 @@ namespace WalletWasabi.Gui.ViewModels
{
FiltersLeft = Synchronizer.GetFiltersLeft();
}
+ else if (e.PropertyName == nameof(Synchronizer.UsdExchangeRate))
+ {
+ BtcPrice = $"${(long)Synchronizer.UsdExchangeRate}";
+ }
}
private void IndexDownloader_ResponseArrivedIsGenSocksServFail(object sender, bool isGenSocksServFail)
@@ -337,6 +350,7 @@ namespace WalletWasabi.Gui.ViewModels
#region IDisposable Support
private volatile bool _disposedValue = false; // To detect redundant calls
+ private string _btcPrice;
protected virtual void Dispose(bool disposing)
{

- show BTC price in status bar