E-book viewer: Fix using the slower/faster buttons causing a chapter skip when using the Piper neural speech backend

Fixes #3050
This commit is contained in:
copilot-swe-agent[bot] 2026-03-18 07:34:00 +00:00 committed by Kovid Goyal
parent b49b0d3bc4
commit 40c8603c16
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -255,7 +255,7 @@ class TTSManager(QObject):
self.emit_state_event('begin')
elif state is QTextToSpeech.State.Ready:
if prev_state is QTextToSpeech.State.Speaking:
if not self.speaking_simple_text:
if not self.speaking_simple_text and not self._resuming_after_configure:
if self.tracker.pop_first() and (text := self.tracker.current_text()):
self.tts.say(text)
else: