Forgot to wire up the saving of the new kobotouch preferences

This commit is contained in:
Kovid Goyal 2025-02-24 21:11:05 +05:30
parent f637014ad1
commit 85efea0bf5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -132,12 +132,20 @@ class KOBOTOUCHConfig(TabbedDeviceConfig):
p['bookstats_timetoread_lower_template'] = self.bookstats_timetoread_lower_template p['bookstats_timetoread_lower_template'] = self.bookstats_timetoread_lower_template
p['modify_css'] = self.modify_css p['modify_css'] = self.modify_css
p['kepubify'] = self.kepubify
p['override_kobo_replace_existing'] = self.override_kobo_replace_existing p['override_kobo_replace_existing'] = self.override_kobo_replace_existing
p['support_newer_firmware'] = self.support_newer_firmware p['support_newer_firmware'] = self.support_newer_firmware
p['debugging_title'] = self.debugging_title p['debugging_title'] = self.debugging_title
p['driver_version'] = '.'.join([str(i) for i in self.device.version]) p['driver_version'] = '.'.join([str(i) for i in self.device.version])
p['affect_hyphenation'] = self.affect_hyphenation
p['disable_hyphenation'] = self.disable_hyphenation
p['hyphenation_min_chars'] = self.hyphenation_min_chars
p['hyphenation_min_chars_before'] = self.hyphenation_min_chars_before
p['hyphenation_min_chars_after'] = self.hyphenation_min_chars_after
p['hyphenation_limit_lines'] = self.hyphenation_limit_lines
return p return p
@ -199,6 +207,7 @@ class Tab3Config(DeviceConfigTab): # {{{
super().__init__(parent) super().__init__(parent)
self.l = l = QVBoxLayout(self) self.l = l = QVBoxLayout(self)
self.hyphenation_options = h = HyphenationGroupBox(self, device) self.hyphenation_options = h = HyphenationGroupBox(self, device)
self.addDeviceWidget(h)
l.addWidget(h) l.addWidget(h)
l.addStretch() l.addStretch()
@ -258,6 +267,10 @@ class BookUploadsGroupBox(DeviceOptionsGroupBox):
def override_kobo_replace_existing(self): def override_kobo_replace_existing(self):
return self.override_kobo_replace_existing_checkbox.isChecked() return self.override_kobo_replace_existing_checkbox.isChecked()
@property
def kepubify(self):
return self.kepubify_checkbox.isChecked()
class HyphenationGroupBox(DeviceOptionsGroupBox): class HyphenationGroupBox(DeviceOptionsGroupBox):