mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 22:05:53 +03:00
Do not dispatch invalid progress information to avoid "unknown" messages
This commit is contained in:
parent
64f4d1b387
commit
5493c22584
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ ProgressDispatcher::~ProgressDispatcher()
|
|||
|
||||
void ProgressDispatcher::setProgressInfo(const QString& folder, const Progress::Info& progress)
|
||||
{
|
||||
if( folder.isEmpty() ) {
|
||||
if( folder.isEmpty() ||
|
||||
(progress._currentItems.size() == 0
|
||||
&& progress._totalFileCount == 0) ) {
|
||||
return;
|
||||
}
|
||||
emit progressInfo( folder, progress );
|
||||
|
|
Loading…
Reference in a new issue