Skip to content

Commit

Permalink
Fix typo in one of SimplificationOptions's fields
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Dec 14, 2023
1 parent 276eb27 commit 822f6c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/advanced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl TreeBehavior {

ui.label("Join nested containers:");
ui.checkbox(
&mut simplification_options.join_nested_linear_containerss,
&mut simplification_options.join_nested_linear_containers,
"",
);
ui.end_row();
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub struct SimplificationOptions {

/// If a horizontal container contain another horizontal container, join them?
/// Same for vertical containers. Does NOT apply to grid container or tab containers.
pub join_nested_linear_containerss: bool,
pub join_nested_linear_containers: bool,
}

impl Default for SimplificationOptions {
Expand All @@ -181,7 +181,7 @@ impl Default for SimplificationOptions {
prune_empty_containers: true,
prune_single_child_containers: true,
all_panes_must_have_tabs: false,
join_nested_linear_containerss: true,
join_nested_linear_containers: true,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl<Pane> Tiles<Pane> {
}
}
} else {
if options.join_nested_linear_containerss {
if options.join_nested_linear_containers {
if let Container::Linear(parent) = container {
let mut new_children = Vec::with_capacity(parent.children.len());
for child_id in parent.children.drain(..) {
Expand Down

0 comments on commit 822f6c4

Please sign in to comment.