prevent a locked wallet from signing a message, opening the dialog in verify only mode

This commit is contained in:
Craig Raw
2026-10-05 10:45:04 +02:00
parent 8f47a8d179
commit 8db14617d8
@@ -1505,7 +1505,7 @@ public class AppController implements Initializable {
public void signVerifyMessage(ActionEvent event) { public void signVerifyMessage(ActionEvent event) {
MessageSignDialog messageSignDialog = null; MessageSignDialog messageSignDialog = null;
WalletForm selectedWalletForm = getSelectedWalletForm(); WalletForm selectedWalletForm = getSelectedWalletForm();
if(selectedWalletForm != null) { if(selectedWalletForm != null && !selectedWalletForm.isLocked()) {
Wallet wallet = selectedWalletForm.getWallet(); Wallet wallet = selectedWalletForm.getWallet();
if(wallet.getPolicyType() == PolicyType.SINGLE_HD || wallet.getPolicyType() == PolicyType.SINGLE_SP) { if(wallet.getPolicyType() == PolicyType.SINGLE_HD || wallet.getPolicyType() == PolicyType.SINGLE_SP) {
//Can sign and verify //Can sign and verify