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() {
final DoubleProperty xmrDaemonSyncProgress = havenoSetup.getXmrDaemonSyncProgress();
UserThread.execute(() -> {
combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue());
});
}
private void updateXmrWalletSyncProgress() {
final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress();
UserThread.execute(() -> {
combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue());
});
}
private void setupInvalidOpenOffersHandler() {