mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-10-05 11:08:25 +00:00
prevent a locked wallet from signing a message, opening the dialog in verify only mode
This commit is contained in:
@@ -1505,7 +1505,7 @@ public class AppController implements Initializable {
|
||||
public void signVerifyMessage(ActionEvent event) {
|
||||
MessageSignDialog messageSignDialog = null;
|
||||
WalletForm selectedWalletForm = getSelectedWalletForm();
|
||||
if(selectedWalletForm != null) {
|
||||
if(selectedWalletForm != null && !selectedWalletForm.isLocked()) {
|
||||
Wallet wallet = selectedWalletForm.getWallet();
|
||||
if(wallet.getPolicyType() == PolicyType.SINGLE_HD || wallet.getPolicyType() == PolicyType.SINGLE_SP) {
|
||||
//Can sign and verify
|
||||
|
||||
Reference in New Issue
Block a user