mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fix accessing properties within the MenuItem
We were not visiting properly the MenuItem from `recurse_elem_including_sub_components_no_borrow` (`recurse_elem_including_sub_components` was correctly modified before) Fixes #8090 The tree-sitter test fails because the output contained `ERROR` as it matched this string
This commit is contained in:
parent
78a3757b7f
commit
82adeb47b2
2 changed files with 9 additions and 1 deletions
|
@ -2212,6 +2212,11 @@ pub fn recurse_elem_including_sub_components_no_borrow<State>(
|
|||
.borrow()
|
||||
.iter()
|
||||
.for_each(|p| recurse_elem_including_sub_components_no_borrow(&p.component, state, vis));
|
||||
component
|
||||
.menu_item_tree
|
||||
.borrow()
|
||||
.iter()
|
||||
.for_each(|c| recurse_elem_including_sub_components_no_borrow(c, state, vis));
|
||||
}
|
||||
|
||||
/// This visit the binding attached to this element, but does not recurse in children elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue