GUIslice-Builder icon indicating copy to clipboard operation
GUIslice-Builder copied to clipboard

Toggle Button switch/case user code deleted when re-generate from builder.

Open BitsMonger opened this issue 3 years ago • 1 comments

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:

  1. create a toggle button
  2. go in the CbBtnCommon toggle btn case:
  3. insert custom code.
  4. 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: tog-bug-ss1

this happen after re-generate the guislice code: tog-bug-ss2 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.

BitsMonger avatar May 09 '22 13:05 BitsMonger

@nadjet09 Thanks for the information. I'll fix this in the 17 b12 release. Paul--

Pconti31 avatar May 09 '22 15:05 Pconti31

fixed in release 17.b12

Pconti31 avatar Sep 01 '22 19:09 Pconti31