Browse Source

dont allow double click to receive on whirlpool wallet

terminal
Craig Raw 3 years ago
parent
commit
4ebee8a8f3
  1. 2
      src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java

2
src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java

@ -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();

Loading…
Cancel
Save