fix(GODT-2932): fix syncing not being reported in GUI.

This commit is contained in:
Xavier Michelon
2023-09-28 12:39:24 +02:00
parent bb67d95669
commit 56c53e9188
2 changed files with 7 additions and 3 deletions

View File

@ -325,6 +325,10 @@ float User::syncProgress() const {
/// \param[in] progress The progress ratio.
//****************************************************************************************************************************************************
void User::setSyncProgress(float progress) {
// In some cases, we may have missed the syncStarted event because it was sent by bridge before the userChanged event,
// so we force the state to 'syncing' (GODT-2932).
this->setIsSyncing(true);
if (qAbs(syncProgress_ - progress) < 0.00001) {
return;
}