1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

All: Avoid excessive data usage when automatically triggering another sync (#13261)

This commit is contained in:
mrjo118
2025-10-10 09:36:42 +01:00
committed by GitHub
parent b35d9a64cf
commit 8ee46bb4e7
4 changed files with 21 additions and 7 deletions

View File

@@ -451,7 +451,7 @@ export default class BaseApplication {
const newState = store.getState() as State;
if (this.hasGui() && ['NOTE_UPDATE_ONE', 'NOTE_DELETE', 'FOLDER_UPDATE_ONE', 'FOLDER_DELETE'].indexOf(action.type) >= 0) {
if (!(await reg.syncTarget().syncStarted())) void reg.scheduleSync(15 * 1000, { syncSteps: ['update_remote', 'delete_remote'] });
if (!(await reg.syncTarget().syncStarted())) void reg.scheduleSync(reg.syncAsYouTypeInterval(), { syncSteps: ['update_remote', 'delete_remote'] });
SearchEngine.instance().scheduleSyncTables();
}