Remove redundant IsNetworkBadgeEnabled property
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -38,7 +38,6 @@ public partial class MainViewModel : ViewModelBase
[AutoNotify] private WindowState _windowState;
[AutoNotify] private bool _isOobeBackgroundVisible;
[AutoNotify] private bool _isCoinJoinActive;
- [AutoNotify] private bool _isNetworkBadgeEnabled;
[AutoNotify] private string _networkBadgeName;
public MainViewModel()
@@ -158,12 +157,10 @@ public partial class MainViewModel : ViewModelBase
if (Services.Config.Network == Network.Main)
{
- IsNetworkBadgeEnabled = false;
NetworkBadgeName = "";
}
else
{
- IsNetworkBadgeEnabled = true;
NetworkBadgeName = Services.Config.Network.Name;
}
}

MODIFY
WalletWasabi.Fluent/Views/Shell/NetworkBadgeView.axaml
WalletWasabi.Fluent/Views/Shell/NetworkBadgeView.axaml
</Style>
</UserControl.Styles>
- <Border IsHitTestVisible="False" Classes="NetworkBadge" Opacity="0.8">
+ <Border IsHitTestVisible="False" Classes="NetworkBadge" Opacity="0.8"
+ IsVisible="{Binding NetworkBadgeName, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
<TextBlock Text="{Binding NetworkBadgeName}" />
</Border>

Remove redundant IsNetworkBadgeEnabled property