disable sign button if signing wallet is closed

This commit is contained in:
Craig Raw 2020-09-01 09:50:44 +02:00
parent 7751f940f2
commit 5054ab9564

View file

@ -830,6 +830,7 @@ public class HeadersController extends TransactionFormController implements Init
signaturesForm.setVisible(true); signaturesForm.setVisible(true);
headersForm.setSigningWallet(availableWallets.get(0)); headersForm.setSigningWallet(availableWallets.get(0));
signButton.setDisable(false);
if(headersForm.getPsbt().isSigned()) { if(headersForm.getPsbt().isSigned()) {
finalizePSBT(); finalizePSBT();
@ -846,6 +847,7 @@ public class HeadersController extends TransactionFormController implements Init
noWalletsWarning.setVisible(false); noWalletsWarning.setVisible(false);
signingWallet.setVisible(true); signingWallet.setVisible(true);
finalizeTransaction.setDisable(false); finalizeTransaction.setDisable(false);
signButton.setDisable(false);
} }
} else { } else {
if(headersForm.getPsbt().isSigned()) { if(headersForm.getPsbt().isSigned()) {
@ -862,6 +864,7 @@ public class HeadersController extends TransactionFormController implements Init
noWalletsWarning.setVisible(true); noWalletsWarning.setVisible(true);
signingWallet.setVisible(false); signingWallet.setVisible(false);
finalizeTransaction.setDisable(true); finalizeTransaction.setDisable(true);
signButton.setDisable(true);
} }
} }
} }