Skip to content

Commit

Permalink
Merge pull request #4658 from oscarguindzberg/moveSegwitCheckbox
Browse files Browse the repository at this point in the history
Move segwit checkbox
  • Loading branch information
ripcurlx authored Oct 17, 2020
2 parents 0dea954 + 3e17058 commit b5d16bc
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,17 @@ public void initialize() {
addressTextField.setManaged(false);
amountTextField.setManaged(false);

generateNewAddressSegwitCheckbox = addCheckBox(gridPane, ++gridRow,
Res.get("funds.deposit.generateAddressSegwit"), -20);
generateNewAddressButton = addButton(gridPane, ++gridRow, Res.get("funds.deposit.generateAddress"), -20);
GridPane.setColumnIndex(generateNewAddressButton, 0);
GridPane.setHalignment(generateNewAddressButton, HPos.LEFT);

generateNewAddressSegwitCheckbox = addCheckBox(gridPane, gridRow,
Res.get("funds.deposit.generateAddressSegwit"), 0);
generateNewAddressSegwitCheckbox.setAllowIndeterminate(false);
generateNewAddressSegwitCheckbox.setSelected(true);
GridPane.setColumnIndex(generateNewAddressSegwitCheckbox, 0);
GridPane.setHalignment(generateNewAddressSegwitCheckbox, HPos.LEFT);

generateNewAddressButton = addButton(gridPane, ++gridRow, Res.get("funds.deposit.generateAddress"), -20);
GridPane.setColumnIndex(generateNewAddressButton, 0);
GridPane.setHalignment(generateNewAddressButton, HPos.LEFT);
GridPane.setMargin(generateNewAddressSegwitCheckbox, new Insets(15, 0, 0, 250));

generateNewAddressButton.setOnAction(event -> {
boolean segwit = generateNewAddressSegwitCheckbox.isSelected();
Expand Down

0 comments on commit b5d16bc

Please sign in to comment.