mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
fix(initial-sync): Fix sync sidebar showing all the time
This commit is contained in:
parent
99bd3c1e69
commit
b4b67c65c9
1 changed files with 6 additions and 2 deletions
|
@ -29,8 +29,12 @@ class InitialSyncActivity extends React.Component
|
|||
incomplete = 0
|
||||
|
||||
for acctId, state of @state.sync
|
||||
for model, modelState of state
|
||||
incomplete += 1 unless modelState.complete
|
||||
for modelName of NylasSyncStatusStore.ModelsForSync
|
||||
modelState = state[modelName]
|
||||
continue unless modelState
|
||||
|
||||
if not modelState.complete
|
||||
incomplete += 1
|
||||
if modelState.count
|
||||
count += modelState.count / 1
|
||||
fetched += modelState.fetched / 1
|
||||
|
|
Loading…
Reference in a new issue