1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-07 20:29:01 +03:00

lvgui: Only activate button when enabled

This commit is contained in:
Samuel Dionne-Riel 2022-09-16 00:39:58 -04:00
parent 3fd8c97556
commit 017e080d6a

View File

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