Validate wallet name when navigated
MODIFY
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
using ReactiveUI;
using System;
using System.IO;
+using System.Reactive.Disposables;
using System.Windows.Input;
using System.Reactive.Linq;
using WalletWasabi.Blockchain.Keys;
@@ -70,6 +71,12 @@ namespace WalletWasabi.Fluent.ViewModels
});
this.ValidateProperty(x => x.WalletName, errors => ValidateWalletName(errors, walletManager, WalletName));
+
+ this.WhenNavigatedTo(() =>
+ {
+ this.RaisePropertyChanged(WalletName);
+ return Disposable.Empty;
+ });
}
private void ValidateWalletName(IValidationErrors errors, WalletManager walletManager, string walletName)

Validate wallet name when navigated