mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
LLR: Fix some issues with globals
This commit is contained in:
parent
6a8261366e
commit
933e580618
1 changed files with 4 additions and 2 deletions
|
@ -421,7 +421,9 @@ fn lower_global(
|
||||||
);
|
);
|
||||||
|
|
||||||
properties.push(Property { name: p.clone(), ty: x.property_type.clone() });
|
properties.push(Property { name: p.clone(), ty: x.property_type.clone() });
|
||||||
|
if !matches!(x.property_type, Type::Callback { .. }) {
|
||||||
const_properties.push(nr.is_constant());
|
const_properties.push(nr.is_constant());
|
||||||
|
}
|
||||||
state
|
state
|
||||||
.global_properties
|
.global_properties
|
||||||
.insert(nr.clone(), PropertyReference::Global { global_index, property_index });
|
.insert(nr.clone(), PropertyReference::Global { global_index, property_index });
|
||||||
|
@ -464,7 +466,7 @@ fn lower_global(
|
||||||
|
|
||||||
let public_properties = public_properties(global, &mapping, &state);
|
let public_properties = public_properties(global, &mapping, &state);
|
||||||
GlobalComponent {
|
GlobalComponent {
|
||||||
name: global.id.clone(),
|
name: global.root_element.borrow().id.clone(),
|
||||||
properties,
|
properties,
|
||||||
init_values,
|
init_values,
|
||||||
const_properties,
|
const_properties,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue