From a691b9af58a5c31f4a7892f31e5635499a720282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Thu, 8 May 2025 16:38:24 +0300 Subject: [PATCH] Added "Playing..." indicator for "Preview" button in the voice mixer --- CHANGELOG.md | 1 + abogen/voice_formula_gui.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index af5b50d..0233c16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # v1.0.7 (pre-release) - Ignore chapter markers and single newlines when calculating text length. +- Added "Playing..." indicator for "Preview" button in the voice mixer. # v1.0.6 - Added `Insert chapter marker` button in text editor to insert chapter markers at the current cursor position. diff --git a/abogen/voice_formula_gui.py b/abogen/voice_formula_gui.py index 10c77e8..e16b454 100644 --- a/abogen/voice_formula_gui.py +++ b/abogen/voice_formula_gui.py @@ -1376,6 +1376,8 @@ class VoiceFormulaDialog(QDialog): # Mark when playback starts if parent.preview_playing: self._started = True + # Update button text to "Playing..." when playback starts + self.btn_preview_mix.setText("Playing...") # Once started and then stopped, re-enable elif getattr(self, "_started", False): self.btn_preview_mix.setEnabled(True)