From 515fbd3c4ba2dfc0a0f0dbb79afa5da7406a8dd3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Feb 2023 13:01:01 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/read_aloud.pyj | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pyj/read_book/read_aloud.pyj b/src/pyj/read_book/read_aloud.pyj index dcfb99ad2a..6c5ede5a41 100644 --- a/src/pyj/read_book/read_aloud.pyj +++ b/src/pyj/read_book/read_aloud.pyj @@ -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)