Ui_events.c is deleted from CMakeLists.txt

When a function call is used from an event, the ui_events.c file is generated along with the function and all related code, ui_events.c is also included in CMakeLists.txt, this is fine.
But if I export ui files once again, the ui_events.c line from CMakeLists.txt is missing and compiler errors are shown

What do you want to achieve?

Use function calls from ui_events.c

What have you tried so far?

Link an event to a function call and exported ui files

Screenshot or video


  • SquareLine Studio version: v1.3.3
  • Operating system: Windows 11
  • Target hardware: ESP32

Thanks for the reporting. I tried with a simple example, this problem you mention really exists: Exporting by ‘Create Template Project’ works as expected multiple times but overwriting with ‘Export UI files’ menupoint really deletes the ‘ui_events.c’ from CMakeLists.txt. We’ll solve this issue soon, until that you should use the ‘Create Template Project’ menupoint which always works well in this regard.