mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
parent
52d750999b
commit
8e8c6ab690
2 changed files with 40 additions and 0 deletions
|
@ -247,6 +247,10 @@ fn init_fake_property(
|
|||
&& !grid_layout_element.borrow().bindings.contains_key(name)
|
||||
{
|
||||
if let Some(e) = lazy_default() {
|
||||
if e.name == name && Rc::ptr_eq(&e.element.upgrade().unwrap(), grid_layout_element) {
|
||||
// Don't reference self
|
||||
return;
|
||||
}
|
||||
grid_layout_element
|
||||
.borrow_mut()
|
||||
.bindings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue