diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-02-24 21:51:37 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-02-24 21:51:37 +0100 |
| commit | 3adeab87ed15b02b9818f7dcd626a627dd6ab08b (patch) | |
| tree | 23a253f5161470b10eb6d8272b774cd42a26608b /main.qml | |
| parent | 2d6ddf043e547838b584402e439d547fa76f3809 (diff) | |
| download | monzero-gui-3adeab87ed15b02b9818f7dcd626a627dd6ab08b.tar.gz monzero-gui-3adeab87ed15b02b9818f7dcd626a627dd6ab08b.tar.xz monzero-gui-3adeab87ed15b02b9818f7dcd626a627dd6ab08b.zip | |
wallet sync: progressbar ui improvements
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -66,6 +66,7 @@ ApplicationWindow { property bool foundNewBlock: false property int timeToUnlock: 0 property bool qrScannerEnabled: builtWithScanner && (QtMultimedia.availableCameras.length > 0) + property int blocksToSync: 1 // true if wallet ever synchronized property bool walletInitialized : false @@ -408,7 +409,12 @@ ApplicationWindow { function onWalletNewBlock(blockHeight, targetHeight) { // Update progress bar - leftPanel.progressBar.updateProgress(blockHeight,targetHeight); + var remaining = targetHeight - blockHeight; + if(blocksToSync < remaining) { + blocksToSync = remaining; + } + + leftPanel.progressBar.updateProgress(blockHeight,targetHeight, blocksToSync); foundNewBlock = true; } |
