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.
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:
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:![tog-bug-ss1](https://i.ibb.co/tB0PVbW/tog-bug-ss1.jpg)
this happen after re-generate the guislice code:
Version
Additional context it only happens with toggle btn for now, didn't happen to me with text button.