Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate ui.set_enabled and set_visbile #4614

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jun 5, 2024

These were confusing, because set_enabled(true) and set_visible(true) did nothing.

Instead use one of:

emilk added 2 commits June 5, 2024 12:26

Verified

This commit was signed with the committer’s verified signature.
branchvincent Branch Vincent

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@emilk emilk added the egui label Jun 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@emilk emilk merged commit d72de1e into master Jun 5, 2024
35 checks passed
@emilk emilk deleted the emilk/remove-set-enabled branch June 5, 2024 11:20
zhaop added a commit to zhaop/bevy_editor_pls that referenced this pull request Jul 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Addresses egui #4614 (emilk/egui#4614)
jakobhellermann pushed a commit to jakobhellermann/bevy_editor_pls that referenced this pull request Aug 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Addresses egui #4614 (emilk/egui#4614)
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
These were confusing, because `set_enabled(true)` and
`set_visible(true)` did nothing.

Instead use one of:
* `ui.add_enabled`, `ui.add_enabled_ui` or `ui.disable()`
* `ui.add_visible`, `ui.add_visible_ui` or `ui.set_invisible()`

* Closes emilk#4327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove set_enabled(true)
1 participant