mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Remove notification on font change (#7589)
Should reduce refreshes competition and avoid glitches.
This commit is contained in:
@@ -224,7 +224,6 @@ function ReaderFont:onSetFontSize(new_size)
|
||||
UIManager:show(Notification:new{
|
||||
text = T( _("Font size set to %1."), self.font_size),
|
||||
})
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -300,10 +299,6 @@ end
|
||||
function ReaderFont:setFont(face)
|
||||
if face and self.font_face ~= face then
|
||||
self.font_face = face
|
||||
UIManager:show(Notification:new{
|
||||
text = T( _("Redrawing with font %1."), face),
|
||||
})
|
||||
|
||||
self.ui.document:setFontFace(face)
|
||||
-- signal readerrolling to update pos in new height
|
||||
self.ui:handleEvent(Event:new("UpdatePos"))
|
||||
|
||||
Reference in New Issue
Block a user