diff options
author | janrupf <werbung.janrupf@t-online.de> | 2019-06-19 15:06:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-22 01:54:08 +0200 |
commit | 320637e8dceb4be891fd0ff631804fe886751c41 (patch) | |
tree | 848d02a32b0675ebb2dc6b0be011ec6d17bc0563 /api | |
parent | ce12f1a734e08f1653aa482279a4dc6b6f3667eb (diff) | |
download | MultiMC-320637e8dceb4be891fd0ff631804fe886751c41.tar MultiMC-320637e8dceb4be891fd0ff631804fe886751c41.tar.gz MultiMC-320637e8dceb4be891fd0ff631804fe886751c41.tar.lz MultiMC-320637e8dceb4be891fd0ff631804fe886751c41.tar.xz MultiMC-320637e8dceb4be891fd0ff631804fe886751c41.zip |
GH-1701 Check job size for translation
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/updater/DownloadTask.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/api/logic/updater/DownloadTask.cpp b/api/logic/updater/DownloadTask.cpp index de83e769..dbd8c65a 100644 --- a/api/logic/updater/DownloadTask.cpp +++ b/api/logic/updater/DownloadTask.cpp @@ -131,7 +131,14 @@ void DownloadTask::processDownloadedVersionInfo() QObject::connect(netJob.get(), &NetJob::progress, this, &DownloadTask::fileDownloadProgressChanged); QObject::connect(netJob.get(), &NetJob::failed, this, &DownloadTask::fileDownloadFailed); - setStatus(tr("Downloading %1 update files.").arg(QString::number(netJob->size()))); + if(netJob->size() == 1) // Translation issues... see https://github.com/MultiMC/MultiMC5/issues/1701 + { + setStatus(tr("Downloading one update file.")); + } + else + { + setStatus(tr("Downloading %1 update files.").arg(QString::number(netJob->size()))); + } qDebug() << "Begin downloading update files to" << m_updateFilesDir.path(); m_filesNetJob = netJob; m_filesNetJob->start(); |