Fix event handlers in cosyvoice.js Fixes #4668
| @@ -88,7 +88,7 @@ class CosyVoiceProvider { | ||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | // Set initial values from the settings |
| 91 | 91 | $('#tts_endpoint').val(this.settings.provider_endpoint).on('change', this.onSettingsChange.bind(this)); |
| 92 | 92 | |
| 93 | 93 | |
| 94 | 94 | await this.checkReady(); |
| @@ -102,7 +102,7 @@ class CosyVoiceProvider { | ||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | async onRefreshClick() { |
| 105 | - return; | |
| 105 | + return await this.checkReady(); | |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | //#################// |