Skip to content

Remove set_enabled(true) #4327

@antonWetzel

Description

@antonWetzel

Is your feature request related to a problem? Please describe.

set_enabled and set_visible sound self explanatory to me, so I did not read the docs.
I wrote

ui.set_enabled(show_cool_widged);
ui.cool_widged(...);
ui.set_enabled(true);
ui.even_cooler_widged(...);

and wonder why my cooler widged is disabled.

Describe the solution you'd like

Remove (or deprecate) ui.set_enabled(...) and ui.set_visible(...).
Add ui.disable() and ui.hide().

Additional context

No clue why this design was choosen, but I think a function named ui.set_enabled should be able to set the ui to enabled.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions