Use coalesce expression
MODIFY
WalletWasabi.Gui/Behaviors/GreyOutOnDisabledBehavior.cs
WalletWasabi.Gui/Behaviors/GreyOutOnDisabledBehavior.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Gui.Behaviors
{
if (enabled)
{
- AssociatedObject.Opacity = OriginalOpacity.HasValue ? OriginalOpacity.Value : 1;
+ AssociatedObject.Opacity = OriginalOpacity ?? 1;
}
else
{

Use coalesce expression