mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-19 04:31:29 +00:00
Fixed:
- Internal documents are now ignored. - Merge dialogue now respond immediately to button pressing. - Periodic processing now works fine - The checking interval of detecting conflicted has got shorter - Replication is now cancelled while cleaning up - The database locking by the cleaning up is now carefully unlocked - Missing chunks message is correctly reported New feature: - Suspend database reflecting has been implemented - Now fetch suspends the reflecting database and storage changes temporarily to improve the performance. - We can choose the action when the remote database has been cleaned - Merge dialogue now show `↲` before the new line. Improved: - Now progress is reported while the cleaning up and fetch process - Cancelled replication is now detected
This commit is contained in:
@@ -430,11 +430,12 @@ export class PeriodicProcessor {
|
||||
enable(interval: number) {
|
||||
this.disable();
|
||||
if (interval == 0) return;
|
||||
this._timer = window.setInterval(() => this._process().then(() => { }), interval);
|
||||
this._timer = window.setInterval(() => this.process().then(() => { }), interval);
|
||||
this._plugin.registerInterval(this._timer);
|
||||
}
|
||||
disable() {
|
||||
if (this._timer) clearInterval(this._timer);
|
||||
if (this._timer !== undefined) window.clearInterval(this._timer);
|
||||
this._timer = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user