mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
hide receive tab on whirlpool wallets
This commit is contained in:
parent
0f9e9d9c35
commit
5895837b60
1 changed files with 7 additions and 1 deletions
|
@ -73,6 +73,11 @@ public class WalletController extends WalletFormController implements Initializa
|
|||
}
|
||||
});
|
||||
|
||||
for(Toggle toggle : walletMenu.getToggles()) {
|
||||
ToggleButton toggleButton = (ToggleButton) toggle;
|
||||
toggleButton.managedProperty().bind(toggleButton.visibleProperty());
|
||||
}
|
||||
|
||||
configure(walletForm.getWallet());
|
||||
}
|
||||
|
||||
|
@ -90,7 +95,8 @@ public class WalletController extends WalletFormController implements Initializa
|
|||
toggle.setSelected(true);
|
||||
}
|
||||
|
||||
((ToggleButton)toggle).setDisable(!validWallet || (whirlpoolChildWallet && toggle.getUserData().equals(Function.RECEIVE)));
|
||||
((ToggleButton)toggle).setDisable(!validWallet);
|
||||
((ToggleButton)toggle).setVisible(!(whirlpoolChildWallet && toggle.getUserData().equals(Function.RECEIVE)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue