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:
parent
3fd8c97556
commit
017e080d6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user