Update menu_bar.rs

This commit is contained in:
wiiznokes 2024-01-04 22:13:25 +01:00
parent 481cd5a0cd
commit 76092dcb40

View file

@ -211,6 +211,7 @@ where
self.height
}
#[allow(invalid_reference_casting)]
fn diff(&mut self, tree: &mut Tree) {
if tree.children.len() > self.menu_roots.len() {
tree.children.truncate(self.menu_roots.len());