set combined sync progress on user thread

This commit is contained in:
woodser 2024-05-24 17:40:28 -04:00
parent 14d17023a8
commit 7e898ba23d

View File

@ -546,12 +546,16 @@ public class MainViewModel implements ViewModel, HavenoSetup.HavenoSetupListener
private void updateXmrDaemonSyncProgress() { private void updateXmrDaemonSyncProgress() {
final DoubleProperty xmrDaemonSyncProgress = havenoSetup.getXmrDaemonSyncProgress(); final DoubleProperty xmrDaemonSyncProgress = havenoSetup.getXmrDaemonSyncProgress();
combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue()); UserThread.execute(() -> {
combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue());
});
} }
private void updateXmrWalletSyncProgress() { private void updateXmrWalletSyncProgress() {
final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress(); final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress();
combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue()); UserThread.execute(() -> {
combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue());
});
} }
private void setupInvalidOpenOffersHandler() { private void setupInvalidOpenOffersHandler() {