mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
E-book viewer: Fix spurious chapter transition after configuring Read aloud
This commit is contained in:
parent
0438ad7c94
commit
34a5b05df4
@ -254,7 +254,7 @@ class TTSManager(QObject):
|
||||
elif prev_state is QTextToSpeech.State.Ready:
|
||||
self.emit_state_event('begin')
|
||||
elif state is QTextToSpeech.State.Ready:
|
||||
if prev_state in (QTextToSpeech.State.Paused, QTextToSpeech.State.Speaking):
|
||||
if prev_state == QTextToSpeech.State.Speaking:
|
||||
if not self.speaking_simple_text:
|
||||
if self.tracker.pop_first() and (text := self.tracker.current_text()):
|
||||
self.tts.say(text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user