Fix event handlers in cosyvoice.js Fixes #4668

ba79e7d94cf96b1df1c6cc52a788e07b661bc68a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/extensions/tts/cosyvoice.js+2 -2
@@ -88,7 +88,7 @@ class CosyVoiceProvider {
8888 }
8989
9090 // Set initial values from the settings
9191 $('#tts_endpoint').val(this.settings.provider_endpoint).on('change', this.onSettingsChange.bind(this));
9292
9393
9494 await this.checkReady();
@@ -102,7 +102,7 @@ class CosyVoiceProvider {
102102 }
103103
104104 async onRefreshClick() {
105- return;
105+ return await this.checkReady();
106106 }
107107
108108 //#################//