Do LWM only when wallet is loaded
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
@@ -27,6 +27,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private ViewModelBase _selectedItem;
private Dictionary<Wallet, WalletViewModelBase> _walletDictionary;
private ObservableAsPropertyHelper<bool> _isLurkingWifeMode;
+ private bool _anyWalletStarted;
public WalletExplorerViewModel() : base("Wallet Explorer")
{
@@ -57,6 +58,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
OpenClosedWallet(cwvm);
}
}
+
+ AnyWalletStarted = Wallets.Any(x => x.WalletState == WalletState.Started);
});
Observable
@@ -75,7 +78,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
CollapseAllCommand = ReactiveCommand.Create(CollapseWallets);
- LurkingWifeModeCommand = ReactiveCommand.Create(ToggleLurkingWifeMode);
+ LurkingWifeModeCommand = ReactiveCommand.Create(ToggleLurkingWifeMode, this.WhenAnyValue(x => x.AnyWalletStarted));
_isLurkingWifeMode = UiConfig
.WhenAnyValue(x => x.LurkingWifeMode)
@@ -142,6 +145,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _selectedItem, value);
}
+ public bool AnyWalletStarted
+ {
+ get => _anyWalletStarted;
+ set => this.RaiseAndSetIfChanged(ref _anyWalletStarted, value);
+ }
+
public ReactiveCommand<Unit, Unit> CollapseAllCommand { get; }
public ReactiveCommand<Unit, Unit> LurkingWifeModeCommand { get; }

Do LWM only when wallet is loaded