LurkingWifeMode on transaction view page
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerView.xaml
xmlns:converters="clr-namespace:WalletWasabi.Gui.Converters;assembly=WalletWasabi.Gui"
xmlns:local="clr-namespace:WalletWasabi.Gui.Controls.WalletExplorer;assembly=WalletWasabi.Gui"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450">
+ <UserControl.Resources>
+ <converters:LurkingWifeModeStringConverter x:Key="LurkingWifeModeStringConverter" />
+ </UserControl.Resources>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="20" Margin="10">
<DockPanel LastChildFill="True">
<Grid Classes="content" DockPanel.Dock="Bottom">
<DockPanel LastChildFill="True" Grid.Row="0" Margin="0 8 0 0">
<TextBlock DockPanel.Dock="Top" Text="PSBT Json" FontWeight="Bold" />
- <controls:MultiTextBox Margin="0 8 0 0" Text="{Binding PsbtJsonText}" CopyOnClick="True" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
+ <controls:MultiTextBox Margin="0 8 0 0" Text="{Binding PsbtJsonText, ConverterParameter=1536, Converter={StaticResource LurkingWifeModeStringConverter}}" CopyOnClick="{Binding !IsLurkingWifeMode}" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
</DockPanel>
<DockPanel LastChildFill="True" Grid.Row="1" Margin="0 8 0 0">
<TextBlock DockPanel.Dock="Top" Text="Transaction Hex" FontWeight="Bold" />
- <controls:MultiTextBox Margin="0 8 0 0" Text="{Binding TransactionHexText}" CopyOnClick="True" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
+ <controls:MultiTextBox Margin="0 8 0 0" Text="{Binding TransactionHexText, ConverterParameter=382, Converter={StaticResource LurkingWifeModeStringConverter}}" CopyOnClick="{Binding !IsLurkingWifeMode}" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
</DockPanel>
<DockPanel LastChildFill="True" Grid.Row="2" Margin="0 8 0 0">
<TextBlock DockPanel.Dock="Top" Text="PSBT Base64 String" FontWeight="Bold" />
- <controls:MultiTextBox Margin="0 8" VerticalAlignment="Stretch" Text="{Binding PsbtBase64Text}" CopyOnClick="True" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
+ <controls:MultiTextBox Margin="0 8" VerticalAlignment="Stretch" Text="{Binding PsbtBase64Text, ConverterParameter=472, Converter={StaticResource LurkingWifeModeStringConverter}}" CopyOnClick="{Binding !IsLurkingWifeMode}" IsSelectable="False" IsReadOnly="True" TextWrapping="Wrap" AcceptsReturn="True" />
</DockPanel>
</Grid>
</DockPanel>

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewerViewModel.cs
@@ -24,6 +24,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private byte[] _psbtBytes;
public ReactiveCommand<Unit, Unit> ExportBinaryPsbtCommand { get; set; }
+ public bool? IsLurkingWifeMode => Global.UiConfig.LurkingWifeMode;
+
public string TxId
{
get => _txId;
@@ -101,6 +103,16 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Disposables = new CompositeDisposable();
base.OnOpen();
+
+ Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(_ =>
+ {
+ this.RaisePropertyChanged(nameof(IsLurkingWifeMode));
+ this.RaisePropertyChanged(nameof(PsbtJsonText));
+ this.RaisePropertyChanged(nameof(TransactionHexText));
+ this.RaisePropertyChanged(nameof(PsbtBase64Text));
+ }).DisposeWith(Disposables);
}
public override bool OnClose()

LurkingWifeMode on transaction view page