mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #382 from drgnfr6/TTS-Race-Condition-Fix
This commit is contained in:
@ -362,15 +362,15 @@ function onApplyClick() {
|
|||||||
Promise.all([
|
Promise.all([
|
||||||
ttsProvider.onApplyClick(),
|
ttsProvider.onApplyClick(),
|
||||||
updateVoiceMap()
|
updateVoiceMap()
|
||||||
]).catch(error => {
|
]).then(() => {
|
||||||
|
extension_settings.tts[ttsProviderName] = ttsProvider.settings
|
||||||
|
saveSettingsDebounced()
|
||||||
|
setTtsStatus('Successfully applied settings', true)
|
||||||
|
console.info(`Saved settings ${ttsProviderName} ${JSON.stringify(ttsProvider.settings)}`)
|
||||||
|
}).catch(error => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
setTtsStatus(error, false)
|
setTtsStatus(error, false)
|
||||||
})
|
})
|
||||||
|
|
||||||
extension_settings.tts[ttsProviderName] = ttsProvider.settings
|
|
||||||
saveSettingsDebounced()
|
|
||||||
setTtsStatus('Successfully applied settings', true)
|
|
||||||
console.info(`Saved settings ${ttsProviderName} ${JSON.stringify(ttsProvider.settings)}`)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEnableClick() {
|
function onEnableClick() {
|
||||||
|
Reference in New Issue
Block a user