From 825d812f93594b9a7d5427468b9fe85d1bdf2cc8 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 1 Mar 2023 16:15:47 +0100 Subject: [PATCH] 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 --- frontend/ui/widget/button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/button.lua b/frontend/ui/widget/button.lua index 037c0d8f6..39351da5b 100644 --- a/frontend/ui/widget/button.lua +++ b/frontend/ui/widget/button.lua @@ -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)