Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 26, 2024
1 parent 28fd589 commit e105f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/gui2/tts/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _state_changed(self, state: QTextToSpeech.State) -> None:
elif prev_state is QTextToSpeech.State.Ready:
self.emit_state_event('begin')
elif state is QTextToSpeech.State.Ready:
if prev_state == QTextToSpeech.State.Speaking:
if prev_state is QTextToSpeech.State.Speaking:
if not self.speaking_simple_text:
if self.tracker.pop_first() and (text := self.tracker.current_text()):
self.tts.say(text)
Expand Down

0 comments on commit e105f24

Please sign in to comment.