cancel
Showing results for 
Search instead for 
Did you mean: 

Touchgfx Designer removes custom files during code generation

MNema.1
Associate II

Hello! 
I have a following problem: I use Designer to generate some screens, and some screens I create without designer. When I create a custom screen (not the screen that I draw in designer) I create two folders:
include/gui/my_screen (with myView.hpp and myPresenter.hpp in it)
src/my_screen  (with myView.cpp and myPresenter.cpp in it)
the project builds ok in STM32CubeIDE.
but then if I run simulator or code generation in the Designer myPresenter.cpp and myPresenter.hpp are removed. 
Why? How can I avoid it?
Thank you.


1 REPLY 1
Osman SOYKURT
ST Employee

Hello @MNema.1 ,

If you use a version control tool, you can prevent the deletion of these folders. So, do not commit the changes of deletion.
Hope it helps 🙂

Osman SOYKURT
ST Software Developer | TouchGFX