Fix wallet title
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -45,7 +45,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
try
{
Money balance = Wallet.Coins.TotalAmount();
- //Title = $"{WalletName} ({(Global.UiConfig.LurkingWifeMode ? "#########" : balance.ToString(false, true))} BTC)";
+ Title = $"{WalletName} ({(Global.UiConfig.LurkingWifeMode ? "#########" : balance.ToString(false, true))} BTC)";
}
catch (Exception ex)
{
@@ -56,8 +56,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
public Global Global { get; }
-
- public string WalletName => Wallet.WalletName;
public KeyManager KeyManager => Wallet.KeyManager;
public ReactiveCommand<Unit, Unit> LurkingWifeModeCommand { get; }

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
@@ -11,11 +11,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
private bool _isExpanded;
private bool _isBusy;
+ private string _title;
public WalletViewModelBase(Wallet wallet)
{
Wallet = Guard.NotNull(nameof(wallet), wallet);
Wallet = wallet;
+ Title = WalletName;
}
protected Wallet Wallet { get; }
@@ -26,7 +28,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _isExpanded, value);
}
- public string Title => Wallet.WalletName;
+ public string Title
+ {
+ get { return _title; }
+ set { this.RaiseAndSetIfChanged(ref _title, value); }
+ }
+
+ public string WalletName => Wallet.WalletName;
public bool IsBusy
{

Fix wallet title