-
Notifications
You must be signed in to change notification settings - Fork 651
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
Compiler crash: unreachable!()
hit
#1132
Comments
I haven't investigated the bug yet, but i'm pretty sure it's because of the PopupWindow again. As always, thanks for the report. |
Of course; happy to help! I think that I'm running across these because I'm trying to imitate traditional top-bar menu design, and most users of Slint are going for more modern UI styles. I'm glad to be able to use this UI in any case of course 😄! Let me know if there's any way I can help with debugging! |
* Make sure that the compiler don't panic if the parent of a PopupWindow is optimized (by not optiizing such element) * Ensure that we can call popup.show() from within a deeper repeater * Ensure that the parent element of the popup is the right one in case of repeater (and not the node in the parent component) This partially revert ad5991f and 6c7a7ae because we must do the lower_popup adter the repeater pass, because otherwise the parent element of the created component for the PopupWindow might be wrong and it is not easy to adjust (we would have to make Component::parent_element a RefCell or duplicate it again. Fixes #1132
* Make sure that the compiler don't panic if the parent of a PopupWindow is optimized (by not optiizing such element) * Ensure that we can call popup.show() from within a deeper repeater * Ensure that the parent element of the popup is the right one in case of repeater (and not the node in the parent component) This partially revert ad5991f and 6c7a7ae because we must do the lower_popup adter the repeater pass, because otherwise the parent element of the created component for the PopupWindow might be wrong and it is not easy to adjust (we would have to make Component::parent_element a RefCell or duplicate it again. Fixes #1132
... All of them.
Code:
Error:
As always, let me know if I can help!
The text was updated successfully, but these errors were encountered: