fixed panic when undocking window in docking manager
@@ -693,8 +693,7 @@ impl UserInterface {
.nodes
.try_borrow_dependant_mut(node_handle, |n| n.parent());
- let widget = widget.unwrap();
-
+ if let Some(widget) = widget {
self.stack.extend_from_slice(widget.children());
let visibility = if let Some(parent) = parent {
@@ -715,6 +714,7 @@ impl UserInterface {
widget.set_global_visibility(visibility);
}
}
+ }
fn update_transform(&mut self) {
scope_profile!();
