Commit 98e62387 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

SendFilesJob: Set total and processed amount of files

Allows for better progress reporting


(cherry picked from commit 291b49f2)
parent d48fb97c
Pipeline #241497 passed with stage
in 48 seconds
......@@ -62,6 +62,7 @@ void SendFilesJob::doStart()
{
qCDebug(BLUEDEVIL_SENDFILE_LOG) << "SendFilesJob-DoStart";
setTotalAmount(Files, m_files.count());
setTotalAmount(Bytes, m_totalSize);
setProcessedAmount(Bytes, 0);
......@@ -75,6 +76,8 @@ void SendFilesJob::nextJob()
m_transfer.clear();
m_currentFile = m_files.takeFirst();
m_currentFileSize = m_filesSizes.takeFirst();
// Starts at 1 file.
setProcessedAmount(Files, totalAmount(Files) - m_files.count());
Q_EMIT description(this,
i18n("Sending file over Bluetooth"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment