Browse Source

fix txtree selection bug when preselecting a txi/txo on opening the editor for the first time

terminal
Craig Raw 4 years ago
parent
commit
4f6ead842d
  1. 2
      src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java

2
src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java

@ -270,7 +270,7 @@ public class TransactionController implements Initializable {
}); });
if(initialView != null) { if(initialView != null) {
setTreeSelection(initialView, initialIndex); Platform.runLater(() -> setTreeSelection(initialView, initialIndex));
} else { } else {
txtree.getSelectionModel().select(txtree.getRoot()); txtree.getSelectionModel().select(txtree.getRoot());
} }

Loading…
Cancel
Save