diff options
Diffstat (limited to 'src')
-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; |