mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
make mix config button naming clearer
This commit is contained in:
parent
41d1a1806d
commit
306f241a4a
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue