mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00

This regressed in commit 12d904a71c
which changed the order of the pass to get the lower_popup pass before
the first inlining pass.
If by chance (which is likely if one have children), the component that
inherits from PopupWindow was inlined in that pass, it would be as
if it was not a component, and it would be removed from its parent.
But since it is no longer inlined, we need to support that case and
delay the removal when processing the component that holds that popup.
12 lines
470 B
Text
12 lines
470 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
|
|
|
component MyPopup inherits PopupWindow {}
|
|
|
|
component MyPopup2 inherits MyPopup {}
|
|
|
|
export component TopLevel inherits MyPopup2 {
|
|
// ^error{PopupWindow cannot be the top level}
|
|
if true : MyPopup2 {}
|
|
// ^error{PopupWindow cannot be directly repeated or conditional}
|
|
}
|