Skip to content

Commit

Permalink
Actually render window children
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamschi committed Aug 30, 2023
1 parent fece15e commit d702a36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion asteracea-imgui/src/components/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ asteracea::component! { imgui =>
)

{
bump.ui.window(title).size(size.0, size.1).build(|| {});
bump.ui.window(title).size(size.0, size.1).build(|| {
//TODO: Allow declaring this as mutable in parameters.
let mut children = children;
for child in children.drain(..) {
child.1(bump)?
}
Ok::<_, Escalation>(())
}).unwrap_or_else(|| Ok(()))?
}
}

Expand Down

0 comments on commit d702a36

Please sign in to comment.