refactor(Tasks): remove 'm_total_size' from ConcurrentTask
We can use the queues directly instead. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -17,6 +17,6 @@ void SequentialTask::startNext()
|
||||
|
||||
void SequentialTask::updateState()
|
||||
{
|
||||
setProgress(m_done.count(), m_total_size);
|
||||
setStatus(tr("Executing task %1 out of %2").arg(QString::number(m_doing.count() + m_done.count()), QString::number(m_total_size)));
|
||||
setProgress(m_done.count(), totalSize());
|
||||
setStatus(tr("Executing task %1 out of %2").arg(QString::number(m_doing.count() + m_done.count()), QString::number(totalSize())));
|
||||
}
|
||||
|
Reference in New Issue
Block a user