fix npe on fee rates selection toggle

This commit is contained in:
Craig Raw 2021-04-16 12:30:59 +02:00
parent 1556b8930c
commit 10d6fb8b2b
2 changed files with 6 additions and 4 deletions

2
drongo

@ -1 +1 @@
Subproject commit a56f8971c022192dbce0dfc5da3c417b605e4b4f
Subproject commit 891499aff04b69f53bf143464001b96b44a0ec53

View file

@ -286,9 +286,11 @@ public class SendController extends WalletFormController implements Initializabl
updateFeeRateSelection(feeRatesSelection);
feeSelectionToggleGroup.selectToggle(feeRatesSelection == FeeRatesSelection.BLOCK_TARGET ? targetBlocksToggle : mempoolSizeToggle);
feeSelectionToggleGroup.selectedToggleProperty().addListener((observable, oldValue, newValue) -> {
if(newValue != null) {
FeeRatesSelection newFeeRatesSelection = (FeeRatesSelection)newValue.getUserData();
Config.get().setFeeRatesSelection(newFeeRatesSelection);
EventManager.get().post(new FeeRatesSelectionChangedEvent(getWalletForm().getWallet(), newFeeRatesSelection));
};
});
fee.setTextFormatter(new CoinTextFormatter());