Extract ToggleLurkingWifeMode function.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletExplorerViewModel.cs
@@ -73,11 +73,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
CollapseAllCommand = ReactiveCommand.Create(CollapseWallets);
- LurkingWifeModeCommand = ReactiveCommand.Create(() =>
- {
- UiConfig.LurkingWifeMode = !UiConfig.LurkingWifeMode;
- UiConfig.ToFile();
- });
+ LurkingWifeModeCommand = ReactiveCommand.Create(ToggleLurkingWifeMode);
_isLurkingWifeMode = UiConfig
.WhenAnyValue(x => x.LurkingWifeMode)
@@ -109,6 +105,12 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(x => shell.AddOrSelectDocument(x));
}
+ private void ToggleLurkingWifeMode()
+ {
+ UiConfig.LurkingWifeMode = !UiConfig.LurkingWifeMode;
+ UiConfig.ToFile();
+ }
+
private void CollapseWallets()
{
foreach (var wallet in Wallets)

Extract ToggleLurkingWifeMode function.