From 70420b2f7897b3b3528c16d7446114fe17cabfe5 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 19 Apr 2023 09:09:31 -0400 Subject: [PATCH] fix thread error in OfferDetailsWindow --- .../desktop/main/overlays/windows/OfferDetailsWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java index b2887b57a8..afbd6fa550 100644 --- a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java +++ b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java @@ -18,6 +18,8 @@ package haveno.desktop.main.overlays.windows; import com.google.common.base.Joiner; + +import haveno.common.UserThread; import haveno.common.crypto.KeyRing; import haveno.common.util.Tuple2; import haveno.common.util.Tuple4; @@ -434,7 +436,7 @@ public class OfferDetailsWindow extends Overlay { if (trade == null || initProgressSubscription != null) return; initProgressSubscription = EasyBind.subscribe(trade.initProgressProperty(), newProgress -> { String progress = (int) (newProgress.doubleValue() * 100.0) + "%"; - spinnerInfoLabel.setText(Res.get("takeOffer.fundsBox.takeOfferSpinnerInfo") + " " + progress); + UserThread.execute(() -> spinnerInfoLabel.setText(Res.get("takeOffer.fundsBox.takeOfferSpinnerInfo") + " " + progress)); }); } }