mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
set combined sync progress on user thread
This commit is contained in:
parent
14d17023a8
commit
7e898ba23d
@ -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();
|
||||||
|
UserThread.execute(() -> {
|
||||||
combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue());
|
combinedSyncProgress.set(xmrDaemonSyncProgress.doubleValue());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateXmrWalletSyncProgress() {
|
private void updateXmrWalletSyncProgress() {
|
||||||
final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress();
|
final DoubleProperty xmrWalletSyncProgress = havenoSetup.getXmrWalletSyncProgress();
|
||||||
|
UserThread.execute(() -> {
|
||||||
combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue());
|
combinedSyncProgress.set(xmrWalletSyncProgress.doubleValue());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupInvalidOpenOffersHandler() {
|
private void setupInvalidOpenOffersHandler() {
|
||||||
|
Loading…
Reference in New Issue
Block a user