Dispatcher: fix action deleted arg (#13488)
This commit is contained in:
1 parent
d799468a80
commit
0a9169edfd
3 files changed
+12
-5
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user