From 85efea0bf5eb6a01b142641f9fd21c7215d84b5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Feb 2025 21:11:05 +0530 Subject: [PATCH] Forgot to wire up the saving of the new kobotouch preferences --- src/calibre/devices/kobo/kobotouch_config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/calibre/devices/kobo/kobotouch_config.py b/src/calibre/devices/kobo/kobotouch_config.py index 91e3a0ae86..871bb35467 100644 --- a/src/calibre/devices/kobo/kobotouch_config.py +++ b/src/calibre/devices/kobo/kobotouch_config.py @@ -132,12 +132,20 @@ class KOBOTOUCHConfig(TabbedDeviceConfig): p['bookstats_timetoread_lower_template'] = self.bookstats_timetoread_lower_template p['modify_css'] = self.modify_css + p['kepubify'] = self.kepubify p['override_kobo_replace_existing'] = self.override_kobo_replace_existing p['support_newer_firmware'] = self.support_newer_firmware p['debugging_title'] = self.debugging_title 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 @@ -199,6 +207,7 @@ class Tab3Config(DeviceConfigTab): # {{{ super().__init__(parent) self.l = l = QVBoxLayout(self) self.hyphenation_options = h = HyphenationGroupBox(self, device) + self.addDeviceWidget(h) l.addWidget(h) l.addStretch() @@ -258,6 +267,10 @@ class BookUploadsGroupBox(DeviceOptionsGroupBox): def override_kobo_replace_existing(self): return self.override_kobo_replace_existing_checkbox.isChecked() + @property + def kepubify(self): + return self.kepubify_checkbox.isChecked() + class HyphenationGroupBox(DeviceOptionsGroupBox):