Browse Source

improve label cell performance by avoiding clipboard retrieval

terminal
Craig Raw 3 years ago
parent
commit
77fde3cda9
  1. 3
      src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java

3
src/main/java/com/sparrowwallet/sparrow/control/LabelCell.java

@ -92,8 +92,6 @@ class LabelCell extends TextFieldTreeTableCell<Entry, String> {
});
getItems().add(copyLabel);
Object content = Clipboard.getSystemClipboard().getContent(DataFormat.PLAIN_TEXT);
if(content instanceof String) {
MenuItem pasteLabel = new MenuItem("Paste Label");
pasteLabel.setOnAction(AE -> {
hide();
@ -105,5 +103,4 @@ class LabelCell extends TextFieldTreeTableCell<Entry, String> {
getItems().add(pasteLabel);
}
}
}
}

Loading…
Cancel
Save