-
Notifications
You must be signed in to change notification settings - Fork 373
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
Fix infinite recursion when putting a container inside a viewer tab #3534
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! Sadly the selection behavior doesn't work out for this yet:
Screen.Recording.2023-09-29.at.11.02.17.mov
and the compiler isn't catching it [endless recursion] for whatever reason
well, the recursion wasn't obviously unconditional since it was in the else
branch of a condition :)
just noticed that the selection behavior I'm complaining was the same in your the description's clip. Somehow it only became unnerving to me when using it.... Anyways, I think the tab container should be greyed out as-if unselected and clicking it should clear the selection instead of keeping the selection on a potentially invisible tab. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually this is - unlike the "always grey" suggestion I made - perfect now 👍
cargo deny failure is a known issue |
What
In
egui_tiles
, not all tiles are panes with space views - some are containers, with more tiles in them.The existing code on
main
tried to handle the latter by calling the trait default implementation of a function:…the problem is that this is a recursive call, leading to infinite recursion (and the compiler isn't catching it for whatever reason).
The new code in this PR explicitly handles groups, giving them an icon and a name:
Checklist