mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
update mix to button when wallet label is changed
This commit is contained in:
parent
631f5d48df
commit
dd5278f442
2 changed files with 6 additions and 1 deletions
|
@ -1879,7 +1879,7 @@ public class AppController implements Initializable {
|
||||||
if(optButtonType.isPresent() && optButtonType.get() == ButtonType.OK) {
|
if(optButtonType.isPresent() && optButtonType.get() == ButtonType.OK) {
|
||||||
subTabs.getTabs().remove(subTab);
|
subTabs.getTabs().remove(subTab);
|
||||||
if(subTabs.getTabs().size() == 1) {
|
if(subTabs.getTabs().size() == 1) {
|
||||||
setSubTabsVisible(subTabs, false);
|
setSubTabsVisible(subTabs, areSubTabsVisible());
|
||||||
}
|
}
|
||||||
EventManager.get().post(new WalletDeletedEvent(wallet));
|
EventManager.get().post(new WalletDeletedEvent(wallet));
|
||||||
}
|
}
|
||||||
|
|
|
@ -601,6 +601,11 @@ public class UtxosController extends WalletFormController implements Initializab
|
||||||
Platform.runLater(this::updateMixToButton);
|
Platform.runLater(this::updateMixToButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Subscribe
|
||||||
|
public void walletLabelChanged(WalletLabelChangedEvent event) {
|
||||||
|
Platform.runLater(this::updateMixToButton);
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void whirlpoolMix(WhirlpoolMixEvent event) {
|
public void whirlpoolMix(WhirlpoolMixEvent event) {
|
||||||
if(event.getWallet().equals(walletForm.getWallet())) {
|
if(event.getWallet().equals(walletForm.getWallet())) {
|
||||||
|
|
Loading…
Reference in a new issue