Add case when you have multiple inputs and not all are selected

This commit is contained in:
BtcContributor 2021-05-11 10:13:00 +02:00
parent 3cb79956db
commit 77f5dc8822
No known key found for this signature in database
GPG Key ID: DA582457496C7F6D

View File

@ -740,6 +740,17 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
inputsToggleGroup.selectedToggleProperty().removeListener(inputsToggleGroupListener);
inputsToggleGroup.selectToggle(useCustomInputsRadioButton);
useAllInputs.set(false);
useCustomFee.setSelected(false);
transactionFeeInputTextField.setEditable(false);
transactionFeeInputTextField.setPromptText(Res.get("funds.withdrawal.useCustomFeeValueInfo"));
transactionFeeInputTextField.setText(String.valueOf(feeService.getTxFeePerVbyte().value));
transactionFeeInputTextField.focusedProperty().addListener(transactionFeeFocusedListener);
feeService.feeUpdateCounterProperty().addListener(transactionFeeChangeListener);
useCustomFee.selectedProperty().addListener(useCustomFeeCheckboxListener);
inputsToggleGroup.selectedToggleProperty().addListener(inputsToggleGroupListener);
}
});