Issue 199 sync on save (#340)

* begin adding a sync on save option

* get the main sync on save working

* get settings sync on save working

---------

Co-authored-by: Sam Purkis <sam.purkis@zimmerbiomet.com>
Co-authored-by: fyears <1142836+fyears@users.noreply.github.com>
This commit is contained in:
Sam Purkis
2024-01-06 12:00:55 +08:00
committed by GitHub
co-authored by Sam Purkis fyears
parent 8d286a79a1
commit 19d5da3e45
7 changed files with 5212 additions and 10 deletions
+1
View File
@@ -55,6 +55,7 @@ export class SyncAlgoV2Modal extends Modal {
this.plugin.saveAgreeToUseNewSyncAlgorithm();
this.plugin.enableAutoSyncIfSet();
this.plugin.enableInitSyncIfSet();
this.plugin.enableSyncOnSaveIfSet();
} else {
log.info("do not agree to use the new algorithm");
this.plugin.unload();