Skip to content

Commit

Permalink
fix(settings): SaveSettings before Init
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 7, 2023
1 parent 049bde9 commit 64c4e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -227,7 +227,7 @@ export default class MyPlugin extends Plugin {
}

async saveSettings() {
await this.init();
await this.saveData(this.settings);
await this.init();
}
}

0 comments on commit 64c4e41

Please sign in to comment.