Error out when a PopupWindow is in a if or for

instead of panicking

We need to mve stuff in the parent element and that doesn't work if
it is a repeated element. Also there would not be ways to call show
on it anyway.

Fixes #1079
This commit is contained in:
Olivier Goffart 2022-03-21 12:46:47 +01:00
parent eb9092ba15
commit 6c7a7aed0e
4 changed files with 24 additions and 2 deletions

View file

@ -116,8 +116,8 @@ pub async fn run_passes(
.chain(std::iter::once(root_component))
{
flickable::handle_flickable(component, &global_type_registry.borrow());
repeater_component::process_repeater_components(component);
lower_popups::lower_popups(component, &doc.local_registry, diag);
repeater_component::process_repeater_components(component);
lower_layout::lower_layouts(component, type_loader, diag).await;
default_geometry::default_geometry(component, diag);
z_order::reorder_by_z_order(component, diag);