mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-14 10:20:15 +00:00
feat: opt-in desktop setting to keep replication active in the background
Replication is suspended when the Obsidian window becomes hidden (document.hidden), so LiveSync and Periodic stop syncing while minimised until the window is focused. Add keepReplicationActiveInBackground (default off, desktop only). When enabled, the window-visibility handler no longer suspends on hide, so replication keeps running while minimised. Becoming visible forces a teardown before reopen (LiveSync only) so a stalled, half-open channel is always replaced. Includes the setting definition (src/lib submodule), a desktop-only toggle in the Sync pane shown for LiveSync and Periodic, a docs/settings.md entry, and unit tests for the visibility handler.
This commit is contained in:
@@ -488,6 +488,11 @@ Automatically Sync all files when opening Obsidian.
|
||||
Setting key: syncAfterMerge
|
||||
Sync automatically after merging files
|
||||
|
||||
#### Keep replication active in the background
|
||||
|
||||
Setting key: keepReplicationActiveInBackground
|
||||
Desktop only; uses more battery and network.
|
||||
|
||||
### 3. Update thinning
|
||||
|
||||
#### Batch database update
|
||||
|
||||
Reference in New Issue
Block a user