read aloud: Fix a regression in the previous release that caused the read aloud controls to not reappear is read aloud is canceled and restarted. Fixes #2007039 ["Read aloud" feature glitches on closing and reopening it](https://bugs.launchpad.net/calibre/+bug/2007039)

This commit is contained in:
Kovid Goyal 2023-02-14 13:01:01 +05:30
parent 1c30c6f644
commit 515fbd3c4b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -243,8 +243,6 @@ class ReadAloud:
self.play()
if data is not None:
pass
elif which is 'cancel':
self.state = STOPPED
def send_message(self, type, **kw):
self.view.iframe_wrapper.send_message('tts', type=type, **kw)