1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Show correct progress when resuming update download

If you restart qTox in the middle of downloading an update, it would continue to download the update correctly but the progress bar would go from 0 to 50% instead of resuming from 50 to 100%
This commit is contained in:
tux3 2015-12-12 20:12:57 +01:00
parent c32e0e9f1b
commit 4e715f5054
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -375,6 +375,7 @@ bool AutoUpdater::downloadUpdate()
{
qDebug() << "Skipping already downloaded file '" + fileMeta.installpath+ "'";
fileFile.close();
progressValue = initialProgress + step;
continue;
}