mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +00:00
disable sign button if signing wallet is closed
This commit is contained in:
parent
7751f940f2
commit
5054ab9564
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue