Also resume talking if config dialog is canceled

This commit is contained in:
Kovid Goyal 2020-12-07 14:27:30 +05:30
parent a488ec951d
commit 8833cd2a30
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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)