mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
llr inlining: fix checking of builtin global properties
This commit is contained in:
parent
85e88eb3d6
commit
6f3668324f
2 changed files with 13 additions and 2 deletions
|
@ -516,6 +516,16 @@ fn lower_global(
|
|||
state
|
||||
.global_properties
|
||||
.insert(nr, PropertyReference::Global { global_index, property_index });
|
||||
prop_analysis.push(
|
||||
global
|
||||
.root_element
|
||||
.borrow()
|
||||
.property_analysis
|
||||
.borrow()
|
||||
.get(p)
|
||||
.cloned()
|
||||
.unwrap_or_default(),
|
||||
);
|
||||
}
|
||||
true
|
||||
} else {
|
||||
|
|
|
@ -196,8 +196,9 @@ fn property_binding_and_analysis<'a>(
|
|||
let g = &ctx.public_component.globals[*global_index];
|
||||
return (
|
||||
Some(&g.prop_analysis[*property_index]),
|
||||
g.init_values[*property_index]
|
||||
.as_ref()
|
||||
g.init_values
|
||||
.get(*property_index)
|
||||
.and_then(Option::as_ref)
|
||||
.map(|b| (b, ContextMap::InGlobal(*global_index))),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue