Properly report Undefined sync status when multiple folders syncing

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-04-04 14:36:11 +08:00 committed by Matthieu Gallien
parent 909147bd6c
commit 76ff41f3e0

View File

@ -1681,6 +1681,8 @@ void FolderMan::trayOverallStatus(const QList<Folder *> &folders,
*status = SyncResult::SyncRunning;
} else if (goodSeen > 0) {
*status = SyncResult::Success;
} else if (various > 0) {
*status = SyncResult::Undefined;
}
}
}