Remove unused argument from AutomatableButton #8179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes an unnecessary string argument from automatable buttons, resulting in shorter code and preventing meaningless translation work.
When I translated I discovered some strings that are not visible in the UI. It turns out that
AutomatableButton,PixmapButtonandLedCheckBoxall require a name for their default constructed model. The string is displayed in the header of the right click context menu, but only if the button never gets connected to a real model. If that happens, the real model's name is used instead. 95% of buttons are connected to real models, and the 5% that aren't are probably not meant to be automated (eg not meant to be right clicked), so removing a header text from their context menu should be no big deal. You can see an example of this in the video. All button tooltips and labels remain untouched.Skarminspelning.fran.2025-12-23.00-33-13.mp4