mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
Remove NodeState
This commit is contained in:
@@ -176,18 +176,18 @@ fn tree_ui(
|
||||
.id_source((node_id, "tree"))
|
||||
.default_open(true)
|
||||
.show(ui, |ui| match node {
|
||||
dock::NodeLayout::Leaf(_) => {}
|
||||
dock::NodeLayout::Tabs(tabs) => {
|
||||
dock::Node::Leaf(_) => {}
|
||||
dock::Node::Tabs(tabs) => {
|
||||
for &child in &tabs.children {
|
||||
tree_ui(ui, behavior, nodes, child);
|
||||
}
|
||||
}
|
||||
dock::NodeLayout::Horizontal(layout) => {
|
||||
dock::Node::Horizontal(layout) => {
|
||||
for &child in &layout.children {
|
||||
tree_ui(ui, behavior, nodes, child);
|
||||
}
|
||||
}
|
||||
dock::NodeLayout::Vertical(layout) => {
|
||||
dock::Node::Vertical(layout) => {
|
||||
for &child in &layout.children {
|
||||
tree_ui(ui, behavior, nodes, child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user