reset wallet name field.
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
@@ -84,19 +84,14 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
if (!inStack)
{
+ WalletName = "";
+
var termsAndConditions = new TermsAndConditionsViewModel(NavigationState, _legalDocuments, this);
NavigateTo(termsAndConditions);
}
}
- protected override void OnNavigatedFrom()
- {
- base.OnNavigatedFrom();
-
- WalletName = "";
- }
-
private void ValidateWalletName(IValidationErrors errors, WalletManager walletManager, string walletName)
{
string walletFilePath = Path.Combine(walletManager.WalletDirectories.WalletsDir, $"{walletName}.json");

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
@@ -149,6 +149,11 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
var inStack = screen.Router.NavigationStack.Contains(viewModel);
+ if (resetNavigation)
+ {
+ inStack = false;
+ }
+
command.Execute(viewModel);
viewModel.DoNavigateTo(inStack);

reset wallet name field.