Toggle Button switch/case user code deleted when re-generate from builder.
Describe the bug so whenever I hit Generate code from the guibuilder, in CbBtnCommon switch/case of toggle button my code will be deleted and a default if(); statement is created. the issue is that it deletes the user code even if it is placed inside the if statement.
To Reproduce Steps to reproduce the behavior:
- create a toggle button
- go in the CbBtnCommon toggle btn case:
- insert custom code.
- re-generate from guislice builder
Expected behavior custom code is deleted an replaced by the default; // TODO Add code for Toggle button ON/OFF state if (gslc_ElemXTogglebtnGetState(&m_gui, m_pElemTog_Alive)) { ; }
Screenshots
custom code inserted:

this happen after re-generate the guislice code:
Version
- Builder version: 0.17.b11
- OS: Windows
Additional context it only happens with toggle btn for now, didn't happen to me with text button.
@nadjet09 Thanks for the information. I'll fix this in the 17 b12 release. Paul--
fixed in release 17.b12