ReaderFooter: Make setDirty happy (#9005)

Don't pass a non-window-level widget.
Painting is handled explicitly via widgetRepaint, so passing a widget to setDirty was just plain wrong anyway ;).
reviewable/pr9010/r1
zwim 2 years ago committed by GitHub
parent 4fe39d6d43
commit 71f6bd8ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2214,7 +2214,7 @@ function ReaderFooter:_updateFooterText(force_repaint, force_recompute)
-- c.f., ReaderView:paintTo()
UIManager:widgetRepaint(self.view.footer, 0, 0)
-- We've painted it first to ensure self.footer_content.dimen is sane
UIManager:setDirty(self.view.footer, function()
UIManager:setDirty(nil, function()
return self.view.currently_scrolling and "fast" or "ui", self.footer_content.dimen
end)
else

Loading…
Cancel
Save