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

This commit is contained in:
Craig Raw 2021-05-17 10:53:26 +02:00
parent adcddfa84d
commit 4f6ead842d

View file

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