mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-02 03:36:24 -04:00
Fix nullpointer, fix wrong hash at arb. select.
This commit is contained in:
parent
840a233544
commit
ceae998bee
2 changed files with 3 additions and 2 deletions
|
@ -101,7 +101,6 @@ public class EmptyWalletPopup extends Popup {
|
|||
emptyWalletButton = new Button("Empty wallet");
|
||||
boolean isBalanceSufficient = Restrictions.isAboveDust(totalBalance);
|
||||
emptyWalletButton.setDefaultButton(isBalanceSufficient);
|
||||
closeButton.setDefaultButton(!isBalanceSufficient);
|
||||
emptyWalletButton.setDisable(!isBalanceSufficient && addressInputTextField.getText().length() > 0);
|
||||
emptyWalletButton.setOnAction(e -> {
|
||||
if (addressInputTextField.getText().length() > 0 && isBalanceSufficient) {
|
||||
|
@ -121,6 +120,7 @@ public class EmptyWalletPopup extends Popup {
|
|||
hide();
|
||||
closeHandlerOptional.ifPresent(closeHandler -> closeHandler.run());
|
||||
});
|
||||
closeButton.setDefaultButton(!isBalanceSufficient);
|
||||
|
||||
HBox hBox = new HBox();
|
||||
hBox.setSpacing(10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue