mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Fix id clash in test_viewports app
This commit is contained in:
@@ -165,7 +165,7 @@ fn show_as_popup(ctx: &egui::Context, title: &str, id: Id, content: impl FnOnce(
|
||||
if ctx.viewport_id() == ctx.parent_viewport_id() {
|
||||
egui::Window::new(title).id(id).show(ctx, content);
|
||||
} else {
|
||||
egui::CentralPanel::default().show(ctx, content);
|
||||
egui::CentralPanel::default().show(ctx, |ui| ui.push_id(id, content));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user