From 58f20dab600bcc05ec32e14ab6c8e8c9a58605ef Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 4 Mar 2022 11:53:12 +0200 Subject: [PATCH] update optimization buttons after max button pressed --- .../java/com/sparrowwallet/sparrow/wallet/SendController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java index d42ea0ed..c7d1c553 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java @@ -392,6 +392,10 @@ public class SendController extends WalletFormController implements Initializabl setFeeRate(feeRate); setEffectiveFeeRate(walletTransaction); + + if(walletTransaction.getPayments().stream().anyMatch(Payment::isSendMax)) { + updateOptimizationButtons(getPayments()); + } } transactionDiagram.update(walletTransaction);