fix: use tree diff

This commit is contained in:
Ashley Wulber 2024-05-30 15:48:51 -04:00 committed by Ashley Wulber
parent 72db8a013b
commit 85c925241e
3 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ impl<'a, Message: Clone> Widget<Message, crate::Theme, crate::Renderer>
}
fn diff(&mut self, tree: &mut Tree) {
self.content.as_widget_mut().diff(&mut tree.children[0]);
tree.children[0].diff(self.content.as_widget_mut());
// if let Some(ref mut context_menus) = self.context_menu {
// for (menu, tree) in context_menus