mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 01:45:56 +01:00
Also resume talking if config dialog is canceled
This commit is contained in:
parent
a488ec951d
commit
8833cd2a30
2 changed files with 4 additions and 0 deletions
|
|
@ -129,3 +129,5 @@ def configure(self, data):
|
|||
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 @@ def handle_tts_event(self, which, data):
|
|||
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…
Reference in a new issue