mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Rename the free_graphics_resources to component_destroyed
And do not iterate over the items anymore
This commit is contained in:
parent
6cbf2c0609
commit
ad2d19165a
10 changed files with 17 additions and 60 deletions
|
@ -1091,10 +1091,8 @@ fn generate_item_tree(
|
|||
|
||||
let mut destructor = vec!["auto self = this;".to_owned()];
|
||||
|
||||
destructor.push(format!(
|
||||
"{}->m_window.window_handle().free_graphics_resources(self, item_array());",
|
||||
root_access
|
||||
));
|
||||
destructor
|
||||
.push(format!("{}->m_window.window_handle().component_destroyed(self);", root_access));
|
||||
|
||||
target_struct.members.push((
|
||||
Access::Public,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue