Remove notification on font change (#7589)

Should reduce refreshes competition and avoid glitches.
reviewable/pr7635/r1
mergen3107 3 years ago committed by GitHub
parent 46a2d9c145
commit 2c1cae64b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"))

Loading…
Cancel
Save