mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Enable click on images by default
This commit is contained in:
parent
1000fbe963
commit
4dac1ae447
@ -347,6 +347,7 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id)
|
|||||||
case HASP_OBJ_IMG:
|
case HASP_OBJ_IMG:
|
||||||
obj = lv_img_create(parent_obj, NULL);
|
obj = lv_img_create(parent_obj, NULL);
|
||||||
if(obj) {
|
if(obj) {
|
||||||
|
lv_obj_set_click(obj, true);
|
||||||
lv_obj_set_event_cb(obj, generic_event_handler);
|
lv_obj_set_event_cb(obj, generic_event_handler);
|
||||||
obj->user_data.objid = LV_HASP_IMAGE;
|
obj->user_data.objid = LV_HASP_IMAGE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user