1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Create struct ImmediateViewport to simplify argument lists

This commit is contained in:
Emil Ernerfeldt
2023-11-14 06:26:53 +01:00
parent 66662e4414
commit 002110ee3d
4 changed files with 59 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ impl ViewportState {
if immediate {
let mut vp_state = vp_state.write();
ctx.show_viewport_immediate(&vp_builder, move |ctx| {
ctx.show_viewport_immediate(vp_builder, move |ctx| {
show_as_popup(ctx, &title, vp_id.into(), |ui: &mut egui::Ui| {
generic_child_ui(ui, &mut vp_state);
});