mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Added is_desktop checkbox in egui_demo_app
Fix window not rendering if is_desktop is false
This commit is contained in:
@@ -469,7 +469,7 @@ impl<'open> Window<'open> {
|
||||
// let is_explicitly_closed = matches!(open, Some(false));
|
||||
let is_open = is_open || ctx.memory(|mem| mem.everything_is_visible());
|
||||
'create_viewport: {
|
||||
if !embedded {
|
||||
if !embedded && ctx.is_desktop() {
|
||||
if !is_open {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user