mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Do not account the size of deleted or renamed file in the progress
Fixes #1360
This commit is contained in:
parent
0afbb264e0
commit
7f76fcff5e
1 changed files with 2 additions and 4 deletions
|
@ -658,14 +658,12 @@ void CSyncThread::slotProgress(Progress::Kind kind, const SyncFileItem& item, qu
|
||||||
_currentFileNo += 1;
|
_currentFileNo += 1;
|
||||||
_previousIndex = indx;
|
_previousIndex = indx;
|
||||||
}
|
}
|
||||||
|
curr = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( kind == Progress::EndUpload ||
|
if( kind == Progress::EndUpload ||
|
||||||
kind == Progress::EndDownload ||
|
kind == Progress::EndDownload) {
|
||||||
kind == Progress::EndRename ||
|
|
||||||
kind == Progress::EndDelete ) {
|
|
||||||
_lastOverallBytes += total;
|
_lastOverallBytes += total;
|
||||||
curr = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Progress::Info pInfo(_progressInfo);
|
Progress::Info pInfo(_progressInfo);
|
||||||
|
|
Loading…
Reference in a new issue