Copy widget does not add a number to the Function names like the widget object name dows

What do you want to achieve?

When copy a widget and all the parts contained in a panel all the objects increment numbers to make the objects unique. If you add a function call back as an action the copy does not add a number so the callbacks are not unique and I have to add the numbers to them manually.

What have you tried so far?

Created a several widgets in a container with a button having the action a Function. When it gets copied it the button object increments but the function does not get a number

Screenshot or video

Others

  • SquareLine Studio version: 1.40
  • Operating system: Windows
  • Target hardware: Elecrow ESP32 5 inch

Button/etc callbacks are handled manually, so it’s not a bug I guess, but intended, that it gives full control about the custom callbacks, whether you use ‘ui_’ prefix or not / etc. (It might be an existing function in the backend). On the other hand, a checkox might be a good idea, so I’ll forward this idea to the issue tracker.