mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 00:27:00 +00:00
show change output when signing
This commit is contained in:
@@ -39,6 +39,9 @@ public class OutputController extends TransactionFormController implements Initi
|
||||
@FXML
|
||||
private CopyableLabel to;
|
||||
|
||||
@FXML
|
||||
private CopyableLabel change;
|
||||
|
||||
@FXML
|
||||
private AddressLabel address;
|
||||
|
||||
@@ -81,6 +84,12 @@ public class OutputController extends TransactionFormController implements Initi
|
||||
//ignore
|
||||
}
|
||||
|
||||
change.managedProperty().bind(change.visibleProperty());
|
||||
change.setVisible(false);
|
||||
outputForm.signingWalletProperty().addListener((observable, oldValue, signingWallet) -> {
|
||||
change.setVisible(signingWallet != null && signingWallet.isWalletOutputScript(txOutput.getScript()));
|
||||
});
|
||||
|
||||
spentField.managedProperty().bind(spentField.visibleProperty());
|
||||
spentByField.managedProperty().bind(spentByField.visibleProperty());
|
||||
spentByField.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user