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