Merge pull request #6316 from xyzmaker123/dont-use-all-utxos

Send funds - don't use all available funds by default
This commit is contained in:
Christoph Atteneder 2022-08-20 21:47:50 +02:00 committed by GitHub
commit 5b5d09db8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
private ChangeListener<Number> transactionFeeChangeListener; private ChangeListener<Number> transactionFeeChangeListener;
private ToggleGroup feeToggleGroup, inputsToggleGroup; private ToggleGroup feeToggleGroup, inputsToggleGroup;
private ToggleButton useCustomFee; private ToggleButton useCustomFee;
private final BooleanProperty useAllInputs = new SimpleBooleanProperty(true); private final BooleanProperty useAllInputs = new SimpleBooleanProperty(false);
private boolean feeExcluded; private boolean feeExcluded;
private int rowIndex = 0; private int rowIndex = 0;
private final FeeService feeService; private final FeeService feeService;
@ -364,7 +364,7 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
feeToggleGroup.selectToggle(feeIncludedRadioButton); feeToggleGroup.selectToggle(feeIncludedRadioButton);
if (inputsToggleGroup.getSelectedToggle() == null) if (inputsToggleGroup.getSelectedToggle() == null)
inputsToggleGroup.selectToggle(useAllInputsRadioButton); inputsToggleGroup.selectToggle(useAllInputs.get() ? useAllInputsRadioButton : useCustomInputsRadioButton);
useCustomFee.setSelected(false); useCustomFee.setSelected(false);
transactionFeeInputTextField.setEditable(false); transactionFeeInputTextField.setEditable(false);