update mix to button when wallet label is changed

This commit is contained in:
Craig Raw 2022-05-03 12:24:31 +02:00
parent 631f5d48df
commit dd5278f442
2 changed files with 6 additions and 1 deletions

View file

@ -1879,7 +1879,7 @@ public class AppController implements Initializable {
if(optButtonType.isPresent() && optButtonType.get() == ButtonType.OK) {
subTabs.getTabs().remove(subTab);
if(subTabs.getTabs().size() == 1) {
setSubTabsVisible(subTabs, false);
setSubTabsVisible(subTabs, areSubTabsVisible());
}
EventManager.get().post(new WalletDeletedEvent(wallet));
}

View file

@ -601,6 +601,11 @@ public class UtxosController extends WalletFormController implements Initializab
Platform.runLater(this::updateMixToButton);
}
@Subscribe
public void walletLabelChanged(WalletLabelChangedEvent event) {
Platform.runLater(this::updateMixToButton);
}
@Subscribe
public void whirlpoolMix(WhirlpoolMixEvent event) {
if(event.getWallet().equals(walletForm.getWallet())) {