diff options
author | Alexander Tkachev | 2016-07-14 10:17:26 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | dfd68306de6f655a7bd2c68cea0b9299956ce8fc (patch) | |
tree | 5700c0c922aebc76f03bd9153f0304f10d346c6a /gui/downloaddialog.cpp | |
parent | e25338ec2494c6ae2ff97f231108627635040f76 (diff) | |
download | scummvm-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.cpp | 6 |
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(); } |