lvgui: Only activate button when enabled
@@ -11,9 +11,11 @@ module LVGUI
btn.event_handler = ->(event) do
case event
when LVGL::EVENT::CLICKED
+ if btn.enabled?()
yield
end
end
+ end
if style
Button::StyleMods.send(style, btn)
end
