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

Do not allow adding Horizontal/Vertical containers inside of containers with the same type #5091

Merged
merged 2 commits into from Feb 7, 2024

Conversation

abey79
Copy link
Contributor

@abey79 abey79 commented Feb 7, 2024

What

Note: due to emilk/egui#3997, the tooltip shows up immediately, which is slightly annoying.

image image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

@abey79 abey79 added ui concerns graphical user interface include in changelog labels Feb 7, 2024
abey79 added a commit that referenced this pull request Feb 7, 2024
@abey79 abey79 added this to the 0.13 milestone Feb 7, 2024
@@ -70,7 +71,32 @@ fn modal_ui(
];

for (title, subtitle, kind) in container_data {
if row_ui(ui, icon_for_container_kind(&kind), title, subtitle).clicked() {
let target_container_kind = target_container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe parent_container_kind is more descriptive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have "target_container" all over the place in that file, so I'd keep it as is for consistency.

@abey79 abey79 merged commit 72681e1 into main Feb 7, 2024
40 checks passed
@abey79 abey79 deleted the antoine/disallow-linear-in-linear branch February 7, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't allow "same-type" linear container children creation
2 participants