From 5054ab9564719150bf8350655a5e69ee22f45a91 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 1 Sep 2020 09:50:44 +0200 Subject: [PATCH] disable sign button if signing wallet is closed --- .../sparrowwallet/sparrow/transaction/HeadersController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index 742199cc..8ff2f99f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -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); } } }