def configure(self, data): ui_settings = get_pref_group('tts').copy() d = Config(self.tts_client, ui_settings, self.backend_settings, parent=self.parent()) 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)
def configure(self, data): ui_settings = get_pref_group('tts').copy() key = 'tts_' + self.tts_client.name d = Config(self.tts_client, ui_settings, vprefs.get(key) or {}, parent=self.parent()) if d.exec_() == d.DialogCode.Accepted: vprefs[key] = d.backend_settings self.settings_changed.emit(d.ui_settings)