mirror of
https://github.com/koreader/koreader.git
synced 2026-12-02 10:12:42 +00:00
readermenu: save doc 'hyphenation' settings as default (#16164)
This commit is contained in:
1 parent
3126ac8476
commit
31f862c057
1 file changed
+6
@@ -362,6 +362,12 @@ dbg:guard(ReaderMenu, 'setUpdateItemTable',
|
||||
function ReaderMenu:saveDocumentSettingsAsDefault()
|
||||
local prefix
|
||||
if self.ui.rolling then
|
||||
G_reader_settings:saveSetting("text_lang_embedded_langs", self.ui.typography.text_lang_embedded_langs)
|
||||
G_reader_settings:saveSetting("hyphenation", self.ui.typography.hyphenation)
|
||||
G_reader_settings:saveSetting("hyph_trust_soft_hyphens", self.ui.typography.hyph_trust_soft_hyphens)
|
||||
G_reader_settings:saveSetting("hyph_soft_hyphens_only", self.ui.typography.hyph_soft_hyphens_only)
|
||||
G_reader_settings:saveSetting("hyph_force_algorithmic", self.ui.typography.hyph_force_algorithmic)
|
||||
G_reader_settings:saveSetting("floating_punctuation", self.ui.typography.floating_punctuation == 1)
|
||||
G_reader_settings:saveSetting("cre_font", self.ui.font.font_face)
|
||||
G_reader_settings:saveSetting("copt_css", self.ui.document.default_css)
|
||||
local style_tweaks = G_reader_settings:readSetting("style_tweaks")
|
||||
|
||||
Reference in new issue
Block a user