wgui: widget_node_map to use more performant SecondaryMap

This commit is contained in:
galister
2025-06-25 21:13:16 +09:00
parent 158562031f
commit f9475248d3
2 changed files with 12 additions and 23 deletions

View File

@@ -124,7 +124,7 @@ impl Animation {
return res; // failed
};
let widget_node = widget_node_map.get(self.target_widget);
let widget_node = *widget_node_map.get(self.target_widget).unwrap();
let layout = tree.layout(widget_node).unwrap(); // should always succeed
let mut widget = widget.lock().unwrap();