Skip to content
Permalink
Browse files

Merge branch 'feature/update_translation_fix' into develop

  • Loading branch information...
peterix committed Jun 25, 2019
2 parents 44a7c58 + 320637e commit 34611c00e3f04b1791bff2b6df7c5ea14d403de4
Showing with 8 additions and 1 deletion.
  1. +8 −1 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();

0 comments on commit 34611c0

Please sign in to comment.
You can’t perform that action at this time.