Enable click on images by default

This commit is contained in:
fvanroie 2021-10-01 22:17:51 +02:00
parent 1000fbe963
commit 4dac1ae447

View File

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