mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Apply changes to tts settings on creation
This commit is contained in:
parent
b9972032e5
commit
8aa354729d
@ -27,7 +27,7 @@ class Client:
|
||||
self.current_marked_text = self.last_mark = None
|
||||
self.dispatch_on_main_thread = dispatch_on_main_thread
|
||||
self.status = {'synthesizing': False, 'paused': False}
|
||||
self.settings = settings
|
||||
self.settings = settings or {}
|
||||
self.ignore_next_stop_event = False
|
||||
self.apply_settings()
|
||||
|
||||
|
@ -64,7 +64,10 @@ class TTS(QObject):
|
||||
@property
|
||||
def tts_client(self):
|
||||
if self._tts_client is None:
|
||||
self._tts_client = self.tts_client_class(self.backend_settings, self.dispatch_on_main_thread_signal.emit)
|
||||
settings = self.backend_settings
|
||||
self._tts_client = self.tts_client_class(settings, self.dispatch_on_main_thread_signal.emit)
|
||||
if self._tts_client.settings != settings:
|
||||
self.backend_settings = self._tts_client.settings
|
||||
return self._tts_client
|
||||
|
||||
def shutdown(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user