Move AllTalk event handlers setup up

1d3abf54a5a5082585363d3381f29c5fab39f672

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

1 files changed, +2 -2Showing whitespace changes
public/scripts/extensions/tts/alltalk.js+2 -2
@@ -262,13 +262,13 @@ class AllTalkTtsProvider {
262262 console.debug('AllTalkTTS: Settings loaded');
263263 try {
264264 // Check if TTS provider is ready
265+ this.setupEventListeners();
266+ this.updateLanguageDropdown();
265267 await this.checkReady();
266268 await this.updateSettingsFromServer(); // Fetch dynamic settings from the TTS server
267269 await this.fetchTtsVoiceObjects(); // Fetch voices only if service is ready
268270 await this.fetchRvcVoiceObjects(); // Fetch RVC voices
269271 this.updateNarratorVoicesDropdown();
270- this.updateLanguageDropdown();
271- this.setupEventListeners();
272272 this.applySettingsToHTML();
273273 updateStatus('Ready');
274274 } catch (error) {