From 4f6ead842d5702f00bce8a704d4e0d82e0e561d7 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 17 May 2021 10:53:26 +0200 Subject: [PATCH] fix txtree selection bug when preselecting a txi/txo on opening the editor for the first time --- .../sparrow/transaction/TransactionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java index c5fe8418..48207c84 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java @@ -270,7 +270,7 @@ public class TransactionController implements Initializable { }); if(initialView != null) { - setTreeSelection(initialView, initialIndex); + Platform.runLater(() -> setTreeSelection(initialView, initialIndex)); } else { txtree.getSelectionModel().select(txtree.getRoot()); }