aboutsummaryrefslogtreecommitdiff
path: root/gui/downloaddialog.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-14 10:17:26 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitdfd68306de6f655a7bd2c68cea0b9299956ce8fc (patch)
tree5700c0c922aebc76f03bd9153f0304f10d346c6a /gui/downloaddialog.cpp
parente25338ec2494c6ae2ff97f231108627635040f76 (diff)
downloadscummvm-rg350-dfd68306de6f655a7bd2c68cea0b9299956ce8fc.tar.gz
scummvm-rg350-dfd68306de6f655a7bd2c68cea0b9299956ce8fc.tar.bz2
scummvm-rg350-dfd68306de6f655a7bd2c68cea0b9299956ce8fc.zip
CLOUD: Upgrade FolderDownloadRequest::getProgress()
Now NetworkReadStream, which is used in DownloadRequest, which is used in FolderDownloadRequest, returns progress information provided by libcurl.
Diffstat (limited to 'gui/downloaddialog.cpp')
-rw-r--r--gui/downloaddialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/downloaddialog.cpp b/gui/downloaddialog.cpp
index 5ed287160f..bfdd3d8928 100644
--- a/gui/downloaddialog.cpp
+++ b/gui/downloaddialog.cpp
@@ -173,6 +173,12 @@ void DownloadDialog::handleTickle() {
return;
}
+ uint32 progress = (uint32)(100 * CloudMan.getDownloadingProgress());
+ if (_progressBar->getValue() != progress) {
+ refreshWidgets();
+ draw();
+ }
+
Dialog::handleTickle();
}