Now a embedded window will only render in his parent window

This commit is contained in:
Konkitoman
2023-07-23 11:57:36 +03:00
parent 41c4714199
commit cf01eff8d1
+3
View File
@@ -458,6 +458,9 @@ impl<'open> Window<'open> {
.show(ctx, |ui| Some(add_contents(ui)))
})
} else {
if ctx.current_window() != ctx.current_rendering_window() {
return None;
}
let frame = frame.unwrap_or_else(|| Frame::window(&ctx.style()));
let is_explicitly_closed = matches!(open, Some(false));