This commit is contained in:
Deniz Şafak
2025-05-04 15:23:25 +03:00
parent 67b35d1dfb
commit 8f8ad3ec26
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
1.0.5
1.0.6
+4 -1
View File
@@ -713,7 +713,8 @@ class VoiceFormulaDialog(QDialog):
]
total = sum(w for _, w in selected)
# disable Preview if no voices selected
# disable Preview if no voices selected, but don't enable while loading
if not getattr(self, "_loading", False):
self.btn_preview_mix.setEnabled(total > 0)
if total > 0:
@@ -1350,6 +1351,7 @@ class VoiceFormulaDialog(QDialog):
# Disable preview until playback completes
self.btn_preview_mix.setEnabled(False)
self.btn_preview_mix.setText("Loading...")
self._loading = True
parent = self.parent()
if parent and hasattr(parent, "preview_voice"):
# Apply mixed voices and selected language
@@ -1378,4 +1380,5 @@ class VoiceFormulaDialog(QDialog):
elif getattr(self, "_started", False):
self.btn_preview_mix.setEnabled(True)
self.btn_preview_mix.setText("Preview")
self._loading = False
self._preview_poll_timer.stop()