Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:sync): clear stale desktop task counters on completion

johavenbdb9a41bd997
diff --git a/frontend/src/app/electron/electron.service.ts b/frontend/src/app/electron/electron.service.ts
index 4794a559..72e67662 100644
--- a/frontend/src/app/electron/electron.service.ts
+++ b/frontend/src/app/electron/electron.service.ts
@@ -137,7 +137,7 @@ export class Electron {
this.store.clientSyncs.next([...this.store.clientSyncs.getValue(), sync])
} else {
this.store.clientSyncs.next(this.store.clientSyncs.getValue().filter((s) => s.syncPathId !== sync.syncPathId))
- this.store.clientSyncTask.next({ syncPathId: sync.syncPathId, nbTasks: 0 })
+ this.setSyncTasksCount({ syncPathId: sync.syncPathId, nbTasks: 0 })
if (sync.lastErrors.length || sync.mainError) {
this.store.clientSyncsWithErrors.next([...this.store.clientSyncsWithErrors.getValue().filter((s) => s.syncPathId !== sync.syncPathId), sync])
} else {