throw exception if pw auth called on hw wallet
MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/PasswordAuthDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/PasswordAuthDialogViewModel.cs
+using System;
using System.Threading.Tasks;
using WalletWasabi.Userfacing;
using WalletWasabi.Wallets;
@@ -12,11 +13,15 @@ namespace WalletWasabi.Fluent.ViewModels.Dialogs.Authorization
public PasswordAuthDialogViewModel(Wallet wallet)
{
+ if (wallet.KeyManager.IsHardwareWallet)
+ {
+ throw new InvalidOperationException("Password authorization is not possible on hardware wallets.");
+ }
+
_wallet = wallet;
_password = "";
EnableCancel = true;
-
EnableBack = false;
}

throw exception if pw auth called on hw wallet