diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-04 00:43:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-04 00:43:33 +0300 |
commit | 9d6b0b3a63f859c6cbb74582221b134d5614acf8 (patch) | |
tree | 62df7e0bd68299a30866ba2b08883b3c385ad247 /src/gui | |
parent | c8ebcf5c2a18a37aa45253a8a63c28bbcd4b989e (diff) | |
download | manaverse-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.gz manaverse-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.bz2 manaverse-9d6b0b3a63f859c6cbb74582221b134d5614acf8.tar.xz manaverse-9d6b0b3a63f859c6cbb74582221b134d5614acf8.zip |
Add progress update files counter.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/updatewindow.cpp | 9 |
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; |