mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also resume talking if config dialog is canceled
This commit is contained in:
parent
a488ec951d
commit
8833cd2a30
@ -129,3 +129,5 @@ class TTS(QObject):
|
||||
if d.exec_() == QDialog.DialogCode.Accepted:
|
||||
self.backend_settings = d.backend_settings
|
||||
self.settings_changed.emit(d.ui_settings)
|
||||
else:
|
||||
self.settings_changed.emit(None)
|
||||
|
@ -205,6 +205,8 @@ class ReadAloud:
|
||||
if self.waiting_for_configure:
|
||||
self.waiting_for_configure = False
|
||||
self.play()
|
||||
if data is not None:
|
||||
pass
|
||||
|
||||
def send_message(self, type, **kw):
|
||||
self.view.iframe_wrapper.send_message('tts', type=type, **kw)
|
||||
|
Loading…
x
Reference in New Issue
Block a user