Skip to content

Commit

Permalink
Merge pull request #835 from alexstotsky/fix-scheduled-sync-progress
Browse files Browse the repository at this point in the history
(fix) Showing the sync state when the scheduler launches the sync
  • Loading branch information
ezewer authored Jul 23, 2024
2 parents 92803ba + 7f4415a commit 64c52f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state/sync/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ function* progressUpdate({ payload }) {
yield put(actions.setIsSyncing(false))
yield put(actions.showInitSyncPopup(false))
} else {
const isSyncing = yield select(getIsSyncing)
const syncProgress = Number.isInteger(progress)
? progress
: 0
if (isSyncInProgress && !isSyncing) yield put(actions.setIsSyncing(true))
yield put(actions.setSyncProgress(syncProgress))
yield put(actions.setEstimatedTime(estimatedTimeValues))
}
Expand Down

0 comments on commit 64c52f4

Please sign in to comment.