aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-02-24 21:51:37 +0100
committerJaquee <jaquee.monero@gmail.com>2017-02-24 21:51:37 +0100
commit3adeab87ed15b02b9818f7dcd626a627dd6ab08b (patch)
tree23a253f5161470b10eb6d8272b774cd42a26608b /main.qml
parent2d6ddf043e547838b584402e439d547fa76f3809 (diff)
downloadmonzero-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.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 4dd72776..91de9efd 100644
--- a/main.qml
+++ b/main.qml
@@ -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;
}