Change all TTS providers loading to async

This commit is contained in:
Cohee
2023-08-28 21:58:46 +03:00
parent b51511b99f
commit ac78d51d59
7 changed files with 22 additions and 22 deletions

View File

@ -71,7 +71,7 @@ class NovelTtsProvider {
})
}
loadSettings(settings) {
async loadSettings(settings) {
// Populate Provider UI given input settings
if (Object.keys(settings).length == 0) {
console.info("Using default TTS Provider settings")
@ -91,7 +91,7 @@ class NovelTtsProvider {
}
this.populateCustomVoices()
this.checkReady()
await this.checkReady()
console.info("Settings loaded")
}