Fix the selection of wallet in the Password Test tab
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletSuccessViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletSuccessViewModel.cs
@@ -26,7 +26,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.GenerateWallets
{
var wallet = global.WalletManager.AddWallet(keyManager);
NotificationHelpers.Success("Wallet was generated.");
- owner.SelectTestPassword();
+ owner.SelectTestPassword(wallet.WalletName);
});
ConfirmCommand.ThrownExceptions

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
@@ -212,7 +212,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.LoadWallets
{
if (keyManager.PasswordVerified == false)
{
- Owner.SelectTestPassword();
+ Owner.SelectTestPassword(walletName);
return null;
}
}

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
@@ -76,9 +76,12 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
SelectedCategory = Categories.First(x => x is LoadWalletViewModel model && model.LoadWalletType == LoadWalletType.Desktop);
}
- public void SelectTestPassword()
+ public void SelectTestPassword(string walletName)
{
- SelectedCategory = Categories.First(x => x is LoadWalletViewModel model && model.LoadWalletType == LoadWalletType.Password);
+ var passwordTestViewModel = Categories.OfType<LoadWalletViewModel>().First(x => x.LoadWalletType == LoadWalletType.Password);
+ SelectedCategory = passwordTestViewModel;
+
+ passwordTestViewModel.SelectedWallet = passwordTestViewModel.Wallets.FirstOrDefault(w => w.WalletName == walletName);
}
public ViewModelBase CurrentView

Fix the selection of wallet in the Password Test tab