mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
Progress works for null downloads (header checks)
This commit is contained in:
parent
91a3e650e9
commit
108a5a677c
@ -37,6 +37,10 @@ CacheDownloadPtr DownloadJob::add ( QUrl url, MetaEntryPtr entry)
|
|||||||
|
|
||||||
void DownloadJob::partSucceeded ( int index )
|
void DownloadJob::partSucceeded ( int index )
|
||||||
{
|
{
|
||||||
|
// do progress. all slots are 1 in size at least
|
||||||
|
auto & slot = parts_progress[index];
|
||||||
|
partProgress ( index, slot.second , slot.second );
|
||||||
|
|
||||||
num_succeeded++;
|
num_succeeded++;
|
||||||
qDebug() << m_job_name.toLocal8Bit() << " progress: " << num_succeeded << "/" << downloads.size();
|
qDebug() << m_job_name.toLocal8Bit() << " progress: " << num_succeeded << "/" << downloads.size();
|
||||||
if(num_failed + num_succeeded == downloads.size())
|
if(num_failed + num_succeeded == downloads.size())
|
||||||
|
Loading…
Reference in New Issue
Block a user