Lurking wife cannot lurk anymore.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
Name="ReceiveTabViewerUserControl">
<UserControl.Resources>
<converters:CoinItemExpanderColorConverter x:Key="CoinItemExpanderColorConverter" />
+ <converters:LurkingWifeModeStringConverter x:Key="LurkingWifeModeStringConverter" />
</UserControl.Resources>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" Margin="10">
<Grid Classes="content">
</StackPanel>
</Expander>
<Grid ColumnDefinitions="400, *, 100" Margin="30 0 0 0">
- <TextBlock IsVisible="{Binding !ClipboardNotificationVisible}" Text="{Binding AddressPrivate}">
+ <TextBlock IsVisible="{Binding !ClipboardNotificationVisible}" Text="{Binding Address, ConverterParameter=27, Converter={StaticResource LurkingWifeModeStringConverter}, Mode=OneWay}">
</TextBlock>
<Grid IsVisible="{Binding ClipboardNotificationVisible}">
</Grid>
</Grid>
- <TextBlock Text="{Binding LabelPrivate}" Grid.Column="1" />
+ <TextBlock Text="{Binding Label, ConverterParameter=11, Converter={StaticResource LurkingWifeModeStringConverter}, Mode=OneWay}" Grid.Column="1" />
</Grid>
</Grid>
</DataTemplate>

MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -41,8 +41,8 @@ namespace WalletWasabi.Gui.ViewModels
Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).Subscribe(_ =>
{
- this.RaisePropertyChanged(nameof(AddressPrivate));
- this.RaisePropertyChanged(nameof(LabelPrivate));
+ this.RaisePropertyChanged(nameof(Address));
+ this.RaisePropertyChanged(nameof(Label));
}).DisposeWith(Disposables);
}
@@ -66,12 +66,8 @@ namespace WalletWasabi.Gui.ViewModels
public string Label => Model.Label;
- public string LabelPrivate => Global.UiConfig.LurkingWifeMode == true ? "###########" : Label;
-
public string Address => Model.GetP2wpkhAddress(Global.Network).ToString();
- public string AddressPrivate => Global.UiConfig.LurkingWifeMode == true ? "###########################" : Address;
-
public string Pubkey => Model.PubKey.ToString();
public string KeyPath => Model.FullKeyPath.ToString();

Lurking wife cannot lurk anymore.