Export my project via Export → Create Template Project.
I created the most basic project with not assets to test the export functionality. I’ve noticed that SquareLine deletes the folder I designate as the C Template Project Export Folder when I choose the folder for the UI files.
What have you tried so far?
I created a new project using the following settings:
Arduino Giga R1 wifi with Giga Display Shield
LVGL Version: 8.3.11
Screenshot or video
Others
SquareLine Studio version: 1.5.4
Operating system: Mac OS Sequoia 15.6.1
Target hardware: Arduino Giga R1 wifi with Giga Display Shield
Hi, This behavior is intentional and necessary for the export process.
When you export the UI files, SquareLine Studio first cleans the target directory (e.g., the ui folder) before generating the new files. This synchronization is crucial. If you delete a screen or an asset inside the SquareLine Studio editor, this cleaning step ensures the corresponding (now unused) files are also removed from your exported project directory. This prevents old, stale code from causing conflicts in your project.
I would recommend to display a confirmation windows before the action, telling that the destination folder would be cleaned. So the user would know in advance…
Hi, this is not entirely straightforward, because having to confirm this action before every single export could become frustrating over time.
One possible solution could be to show a confirmation dialog only on the first export, and then not show it again for subsequent exports. We are currently thinking about what the best approach would be here.