add sync once after start up

This commit is contained in:
fyears
2022-03-06 18:49:15 +08:00
parent 76e61b6ebf
commit 18cb8ba413
4 changed files with 53 additions and 6 deletions
+1
View File
@@ -60,6 +60,7 @@ export class SyncAlgoV2Modal extends Modal {
log.info("agree to use the new algorithm");
this.plugin.saveAgreeToUseNewSyncAlgorithm();
this.plugin.enableAutoSyncIfSet();
this.plugin.enableInitSyncIfSet();
} else {
log.info("do not agree to use the new algorithm");
this.plugin.unload();