summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-04 00:43:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-04 00:43:33 +0300
commit9d6b0b3a63f859c6cbb74582221b134d5614acf8 (patch)
tree62df7e0bd68299a30866ba2b08883b3c385ad247
parentc8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e (diff)
downloadplus-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.gz
plus-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.bz2
plus-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.xz
plus-9d6b0b3a63f859c6cbb74582221b134d5614acf8.zip
Add progress update files counter.
-rw-r--r--src/gui/updatewindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index ea8d27013..bc74aeb58 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -524,6 +524,15 @@ void UpdaterWindow::logic()
}
mProgressBar->setProgress(mDownloadProgress);
+ if (mUpdateFiles.size() && mUpdateIndex <= mUpdateFiles.size())
+ {
+ mProgressBar->setText(strprintf("%d/%d",
+ mUpdateIndex + 1, (int)mUpdateFiles.size() + 1));
+ }
+ else
+ {
+ mProgressBar->setText("");
+ }
}
std::string filename = mUpdatesDir + "/" + mCurrentFile;