fix(voice): re-check voice status on tab visibility change and after saving voice settings

This commit is contained in:
2026-04-07 20:01:47 -04:00
parent 7f37cee49f
commit 6d57840dc7
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -500,6 +500,8 @@ async function saveAdminVoice() {
adminVoiceSaved.value = true;
setTimeout(() => { adminVoiceSaved.value = false; }, 2000);
voiceTabLoaded.value = false;
// Always update global voice state so mic buttons appear/disappear immediately
await store.checkVoiceStatus();
if (adminVoiceEnabled.value) {
await reloadVoiceModels();
}