diff --git a/abogen/VERSION b/abogen/VERSION index 1464c52..ece61c6 100644 --- a/abogen/VERSION +++ b/abogen/VERSION @@ -1 +1 @@ -1.0.5 \ No newline at end of file +1.0.6 \ No newline at end of file diff --git a/abogen/voice_formula_gui.py b/abogen/voice_formula_gui.py index 6c105dd..10c77e8 100644 --- a/abogen/voice_formula_gui.py +++ b/abogen/voice_formula_gui.py @@ -713,8 +713,9 @@ class VoiceFormulaDialog(QDialog): ] total = sum(w for _, w in selected) - # disable Preview if no voices selected - self.btn_preview_mix.setEnabled(total > 0) + # 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: self.error_label.hide() @@ -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()