remove copying property.
MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -323,10 +323,9 @@ namespace WalletWasabi.Gui.Tabs
return;
}
- DoValidation();
- var isValid = !HasErrors;
+ Validate();
- if (!isValid)
+ if (!HasErrors)
{
return;
}

MODIFY
WalletWasabi.Gui/ViewModels/ViewModelBase.cs
WalletWasabi.Gui/ViewModels/ViewModelBase.cs
@@ -101,7 +101,7 @@ namespace WalletWasabi.Gui.ViewModels
_errorsByPropertyName[propertyName] = ErrorDescriptors.Create();
}
- protected void DoValidation()
+ protected void Validate()
{
foreach (var propertyName in _validationMethods.Keys)
{
@@ -113,7 +113,7 @@ namespace WalletWasabi.Gui.ViewModels
{
if (string.IsNullOrWhiteSpace(e.PropertyName))
{
- DoValidation();
+ Validate();
}
else
{

remove copying property.