From c067300ee8cda4f714e91d530181b6aafaea4ab7 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 4 May 2021 10:42:18 +0200 Subject: [PATCH] fix empty addresses table bug after requesting many new addresses --- .../com/sparrowwallet/sparrow/control/AddressTreeTable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java b/src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java index 10070f57..c4610c00 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/AddressTreeTable.java @@ -9,6 +9,7 @@ import com.sparrowwallet.sparrow.wallet.Entry; import com.sparrowwallet.sparrow.wallet.NodeEntry; import javafx.application.Platform; import javafx.beans.property.ReadOnlyObjectWrapper; +import javafx.collections.ListChangeListener; import javafx.scene.control.*; import javafx.scene.input.MouseButton; @@ -82,6 +83,10 @@ public class AddressTreeTable extends CoinTreeTable { } } }); + + rootEntry.getChildren().addListener((ListChangeListener) c -> { + this.refresh(); + }); } public void updateAll(NodeEntry rootEntry) {