mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Added "Playing..." indicator for "Preview" button in the voice mixer
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user