Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/TTSServiceImplementation.ts
#	src/main.ts
  • Loading branch information
joethei committed Feb 16, 2024
2 parents 6521aeb + d85e2ac commit 04e59ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 04e59ec

Please sign in to comment.