diff --git a/src/main.ts b/src/main.ts index 5ee5930..7bd89a5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -249,6 +249,10 @@ export default class TTSPlugin extends Plugin { await this.saveData(this.settings); } + async onExternalSettingsChange() { + await this.loadSettings(); + } + getVoice(languageCode: string): string { const filtered = this.settings.languageVoices.filter((lang: LanguageVoiceMap) => lang.language === languageCode); if (filtered.length === 0) return null;