Bug setting target_obj in event when creating ui.c

What do you want to achieve?

What have you tried so far?

Setting up events in SLS and creating a ui.c doesn’t seem to target the events.

Screenshot or video


There is target_obj where ui_Button2 should be.

I rely on google translator.
Thx

Others

  • SquareLine Studio version: 1.1
  • Operating system: SLS
  • Target hardware:

We are on it, thanks!

1 Like

any update? This is still present.
Thanks

In the screenshot above the ‘target_obj’ is really incorrect, because it should be only ‘target’. But just tried in SquareLine Studio, now it exports ‘target’ and behaves correctly (Button2 has a checked and unchecked events that set Button1 to the corresponding states.)
The event must not have ‘ui_Button2’ in the lv_obj_has_state() evaluation because ‘target’ is the same as ui_Button2 there, thanks to LVGL setting it in the ‘event’ object received by the callback.