make mix config button naming clearer

This commit is contained in:
Craig Raw 2022-01-20 08:27:48 +02:00
parent 41d1a1806d
commit 306f241a4a

View file

@ -223,11 +223,11 @@ public class UtxosController extends WalletFormController implements Initializab
private void updateMixToButton() { private void updateMixToButton() {
MixConfig mixConfig = getWalletForm().getWallet().getMasterMixConfig(); MixConfig mixConfig = getWalletForm().getWallet().getMasterMixConfig();
if(mixConfig != null && mixConfig.getMixToWalletName() != null) { if(mixConfig != null && mixConfig.getMixToWalletName() != null) {
mixTo.setText("Mix to " + mixConfig.getMixToWalletName()); mixTo.setText("Mixing to " + mixConfig.getMixToWalletName());
try { try {
String mixToWalletId = AppServices.getWhirlpoolServices().getWhirlpoolMixToWalletId(mixConfig); String mixToWalletId = AppServices.getWhirlpoolServices().getWhirlpoolMixToWalletId(mixConfig);
String mixToName = AppServices.get().getWallet(mixToWalletId).getFullDisplayName(); String mixToName = AppServices.get().getWallet(mixToWalletId).getFullDisplayName();
mixTo.setText("Mix to " + mixToName); mixTo.setText("Mixing to " + mixToName);
mixTo.setGraphic(getExternalGlyph()); mixTo.setGraphic(getExternalGlyph());
mixTo.setTooltip(new Tooltip("Mixing to " + mixToName + " after at least " + (mixConfig.getMinMixes() == null ? Whirlpool.DEFAULT_MIXTO_MIN_MIXES : mixConfig.getMinMixes()) + " mixes")); mixTo.setTooltip(new Tooltip("Mixing to " + mixToName + " after at least " + (mixConfig.getMinMixes() == null ? Whirlpool.DEFAULT_MIXTO_MIN_MIXES : mixConfig.getMinMixes()) + " mixes"));
} catch(NoSuchElementException e) { } catch(NoSuchElementException e) {