mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-31 21:38:18 +00:00
fix(syncguard): retire bypass on catch-up completion and close CSS rule
This commit is contained in:
1 parent
2d3a5e5ff8
commit
47828e934b
6 files changed
+100
-4
No files matched your search
@@ -104,7 +104,7 @@ export function useSyncGuardFeature(host: LiveSyncCore, createOverlay: SyncGuard
|
||||
// Commonlib enters continuous only after a successful pull-only catch-up.
|
||||
guard.catchUpSucceeded();
|
||||
guard.catchUpActivityChanged(false, readPendingCount(), Date.now());
|
||||
} else if (guard.presentation.phase !== "idle" && terminalPhaseTimer === undefined) {
|
||||
} else if ((guard.presentation.phase !== "idle" || guard.isCatchUpActive) && terminalPhaseTimer === undefined) {
|
||||
// The one-shot PouchDB progress observer can report 'idle' before the
|
||||
// enclosing finite CouchDB pull has finished releasing its resources.
|
||||
// This counter is not used to identify the provider; CouchDB phase owns that.
|
||||
|
||||
Reference in new issue
Block a user