fix ui button update when stopping mixing on terminal

This commit is contained in:
Craig Raw 2023-06-22 09:10:52 +02:00
parent 2deab05c45
commit bcbb531414

View file

@ -81,7 +81,12 @@ public class UtxosDialog extends WalletDialog {
}
}
startMix.setLabel(newValue ? "Stop Mixing" : "Start Mixing");
Whirlpool whirlpool = AppServices.getWhirlpoolServices().getWhirlpool(getWalletForm().getWallet());
if(newValue) {
startMix.setLabel("Stop Mixing");
} else if(whirlpool == null || !whirlpool.stoppingProperty().get()) {
startMix.setLabel("Start Mixing");
}
};
public UtxosDialog(WalletForm walletForm) {