1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-06 03:27:17 +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,7 +11,9 @@ module LVGUI
btn.event_handler = ->(event) do
case event
when LVGL::EVENT::CLICKED
yield
if btn.enabled?()
yield
end
end
end
if style