mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-04 16:15:17 +00:00
### Fixed
- Fixed a bug that caused wrong event bindings and flag inversion (#727) - This caused following issues: - In some cases, settings changes were not applied or saved correctly. - Automatic synchronisation did not begin correctly. ### Improved - Too large diffs are not shown in the file comparison view, due to performance reasons.
This commit is contained in:
@@ -15,13 +15,12 @@ export class ModuleReplicatorCouchDB extends AbstractModule {
|
||||
return Promise.resolve(new LiveSyncCouchDBReplicator(this.core));
|
||||
}
|
||||
_everyAfterResumeProcess(): Promise<boolean> {
|
||||
if (!this.services.appLifecycle.isSuspended()) return Promise.resolve(true);
|
||||
if (this.services.appLifecycle.isSuspended()) return Promise.resolve(true);
|
||||
if (!this.services.appLifecycle.isReady()) return Promise.resolve(true);
|
||||
if (this.settings.remoteType != REMOTE_MINIO && this.settings.remoteType != REMOTE_P2P) {
|
||||
const LiveSyncEnabled = this.settings.liveSync;
|
||||
const continuous = LiveSyncEnabled;
|
||||
const eventualOnStart = !LiveSyncEnabled && this.settings.syncOnStart;
|
||||
|
||||
// If enabled LiveSync or on start, open replication
|
||||
if (LiveSyncEnabled || eventualOnStart) {
|
||||
// And note that we do not open the conflict detection dialogue directly during this process.
|
||||
|
||||
Reference in New Issue
Block a user