mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
only increment the progressbar for files when the file has been fully transfered
This commit is contained in:
parent
4c77a04514
commit
f034bcb9ae
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ void AccountSettings::slotSetProgress(const QString& folder, const Progress::Inf
|
|||
int overallPercent = 0;
|
||||
if( progress._totalFileCount > 0 ) {
|
||||
// Add one 'byte' for each files so the percentage is moving when deleting or renaming files
|
||||
overallPercent = qRound(double(completedSize + currentFile)/double(progress._totalSize + progress._totalFileCount) * 100.0);
|
||||
overallPercent = qRound(double(completedSize + progress._completedFileCount)/double(progress._totalSize + progress._totalFileCount) * 100.0);
|
||||
}
|
||||
item->setData( overallPercent, FolderStatusDelegate::SyncProgressOverallPercent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue