[libcalamares] Improve logging - report correct number of jobs left

This commit is contained in:
Adriaan de Groot 2020-08-10 17:02:03 +02:00
parent e9f2c57442
commit 9413b28209

View File

@ -79,7 +79,7 @@ public:
emitProgress();
cDebug() << "Starting" << ( anyFailed ? "EMERGENCY JOB" : "job" ) << job->prettyName() << "(there are"
<< m_jobs.count() << " left)";
<< ( m_jobs.count() - m_jobIndex ) << "left)";
connect( job.data(), &Job::progress, this, &JobThread::emitProgress );
JobResult result = job->exec();
if ( !anyFailed && !result )