1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

Last cleanup pass

This commit is contained in:
Emil Ernerfeldt
2023-05-08 11:23:34 +02:00
parent d4efb3215a
commit 1799713fb0
8 changed files with 91 additions and 71 deletions

View File

@@ -263,7 +263,7 @@ fn tree_ui(
.show(ui, |ui| match &mut node {
dock::Node::Leaf(_) => {}
dock::Node::Branch(branch) => {
let mut layout = branch.get_layout();
let mut layout = branch.layout();
egui::ComboBox::from_label("Layout")
.selected_text(format!("{:?}", layout))
.show_ui(ui, |ui| {
@@ -272,7 +272,7 @@ fn tree_ui(
.clicked();
}
});
if layout != branch.get_layout() {
if layout != branch.layout() {
branch.set_layout(layout);
}