Replace ShowHideSensitiveConverter  by Bool2Str
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoView.xaml
xmlns:converters="clr-namespace:WalletWasabi.Gui.Converters;assembly=WalletWasabi.Gui">
<UserControl.Resources>
<converters:LurkingWifeModeStringConverter x:Key="LurkingWifeModeStringConverter" />
- <converters:ShowHideSensitiveKeysBoolConverter x:Key="ShowHideSensitiveKeysBoolConverter" />
+ <converters:BooleanStringConverter x:Key="BooleanStringConverter" />
</UserControl.Resources>
<controls:GroupBox Title="{Binding Title}" BorderThickness="0" Classes="docTabContainer">
<StackPanel>
</i:Interaction.Behaviors>
</controls:NoparaPasswordBox>
<DockPanel VerticalAlignment="Top" LastChildFill="True">
- <Button Content="{Binding ShowSensitiveKeys, Converter={StaticResource ShowHideSensitiveKeysBoolConverter}}" Command="{Binding ToggleSensitiveKeysCommand}" DockPanel.Dock="Right" />
+ <Button Content="{Binding ShowSensitiveKeys, StringFormat=\{0\} Sensitive Keys,
+ Converter={StaticResource BooleanStringConverter}, ConverterParameter=Hide:Show}"
+ Command="{Binding ToggleSensitiveKeysCommand}" DockPanel.Dock="Right" />
<Grid></Grid>
</DockPanel>
<TextBlock Text="{Binding WarningMessage}" Classes="warningMessage" />

DELETE
WalletWasabi.Gui/Converters/ShowHideSensitiveKeysBoolConverter.cs
-using Avalonia.Data.Converters;
-using System;
-using System.Globalization;
-
-namespace WalletWasabi.Gui.Converters
-{
- public class ShowHideSensitiveKeysBoolConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is bool isShow)
- {
- return isShow ? "Hide Sensitive Keys" : "Show Sensitive Keys";
- }
- else
- {
- throw new TypeArgumentException(value, typeof(bool), nameof(value));
- }
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotSupportedException();
- }
- }
-}

Replace ShowHideSensitiveConverter  by Bool2Str