Dispatcher: fix action deleted arg (#13488)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
hius07
2025-04-05 09:50:28 +03:00
committed by GitHub
parent d799468a80
commit 0a9169edfd
3 changed files with 12 additions and 5 deletions

View File

@@ -296,10 +296,15 @@ end
function ReaderFont:onSetFont(face)
if face and self.font_face ~= face then
self.font_face = face
self.ui.document:setFontFace(face)
-- signal readerrolling to update pos in new height
self.ui:handleEvent(Event:new("UpdatePos"))
for _, fontinfo in pairs(FontList.fontinfo) do
if fontinfo[1].name == face then
self.font_face = face
self.ui.document:setFontFace(face)
-- signal readerrolling to update pos in new height
self.ui:handleEvent(Event:new("UpdatePos"))
return
end
end
end
end