dont allow double click to receive on whirlpool wallet

This commit is contained in:
Craig Raw 2021-09-29 10:41:16 +02:00
parent 2548e77d90
commit 4ebee8a8f3

View file

@ -68,6 +68,7 @@ public class AddressTreeTable extends CoinTreeTable {
} }
} }
if(!rootEntry.getWallet().isWhirlpoolChildWallet()) {
setOnMouseClicked(mouseEvent -> { setOnMouseClicked(mouseEvent -> {
if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){ if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){
if(mouseEvent.getClickCount() == 2) { if(mouseEvent.getClickCount() == 2) {
@ -83,6 +84,7 @@ public class AddressTreeTable extends CoinTreeTable {
} }
} }
}); });
}
rootEntry.getChildren().addListener((ListChangeListener<Entry>) c -> { rootEntry.getChildren().addListener((ListChangeListener<Entry>) c -> {
this.refresh(); this.refresh();