From 7e898ba23d2833850e1292f4f82e600b7327d3e4 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 24 May 2024 17:40:28 -0400 Subject: [PATCH] set combined sync progress on user thread --- .../src/main/java/haveno/desktop/main/MainViewModel.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/MainViewModel.java b/desktop/src/main/java/haveno/desktop/main/MainViewModel.java index 57af440013..4681431b70 100644 --- a/desktop/src/main/java/haveno/desktop/main/MainViewModel.java +++ b/desktop/src/main/java/haveno/desktop/main/MainViewModel.java @@ -546,12 +546,16 @@ public class MainViewModel implements ViewModel, HavenoSetup.HavenoSetupListener private void updateXmrDaemonSyncProgress() { final DoubleProperty xmrDaemonSyncProgress = havenoSetup.getXmrDaemonSyncProgress(); - combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue()); + UserThread.execute(() -> { + combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue()); + }); } private void updateXmrWalletSyncProgress() { final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress(); - combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue()); + UserThread.execute(() -> { + combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue()); + }); } private void setupInvalidOpenOffersHandler() {