Last active
February 5, 2025 20:33
-
-
Save dmalinovsky/699d93fbc2b2229570c7b322dcab1dd0 to your computer and use it in GitHub Desktop.
Patch for KOReader to save font size as default after its change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReaderFont = require("apps/reader/modules/readerfont") | |
local onSetFontSize_orig = ReaderFont.onSetFontSize | |
ReaderFont.onSetFontSize = function(self, size) | |
-- Run original code | |
res = onSetFontSize_orig(self, size) | |
G_reader_settings:saveSetting("copt_font_size", size) | |
return res | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment