mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
1c30c6f644
commit
515fbd3c4b
@ -243,8 +243,6 @@ class ReadAloud:
|
|||||||
self.play()
|
self.play()
|
||||||
if data is not None:
|
if data is not None:
|
||||||
pass
|
pass
|
||||||
elif which is 'cancel':
|
|
||||||
self.state = STOPPED
|
|
||||||
|
|
||||||
def send_message(self, type, **kw):
|
def send_message(self, type, **kw):
|
||||||
self.view.iframe_wrapper.send_message('tts', type=type, **kw)
|
self.view.iframe_wrapper.send_message('tts', type=type, **kw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user