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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user