Button: don't dump the widget in a debug print (#10171)

Just display its ref.

Re: https://github.com/koreader/koreader/pull/7166#issuecomment-1445177124
reviewable/pr10172/r1
NiLuJe 1 year ago committed by GitHub
parent 38bd768d5e
commit 825d812f93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -446,7 +446,7 @@ function Button:refresh()
-- e.g., right after a setText or setIcon is a no-go, as those kill the frame.
-- (Although, setText, if called with the current width, will conserve the frame).
if not self[1].dimen then
logger.dbg("Button:", self, "attempted a repaint in an unpainted frame!")
logger.dbg("Button:", tostring(self), "attempted a repaint in an unpainted frame!")
return
end
UIManager:widgetRepaint(self[1], self[1].dimen.x, self.dimen.y)

Loading…
Cancel
Save