mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 23:30:04 -04:00
Box the app creator (#1373)
This commit is contained in:
@@ -16,7 +16,9 @@ fn main() {
|
||||
drag_and_drop_support: true,
|
||||
..Default::default()
|
||||
};
|
||||
eframe::run_native("egui demo app", options, |cc| {
|
||||
Box::new(egui_demo_lib::WrapApp::new(cc))
|
||||
});
|
||||
eframe::run_native(
|
||||
"egui demo app",
|
||||
options,
|
||||
Box::new(|cc| Box::new(egui_demo_lib::WrapApp::new(cc))),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user