Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Bluedevil
Commits
98e62387
Commit
98e62387
authored
Oct 04, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/sendfile/sendfilesjob.cpp
View file @
98e62387
...
...
@@ -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"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment