mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Box the app creator (#1373)
This commit is contained in:
@@ -15,9 +15,11 @@ use std::sync::Arc;
|
||||
|
||||
fn main() {
|
||||
let options = eframe::NativeOptions::default();
|
||||
eframe::run_native("Custom 3D painting in eframe", options, |cc| {
|
||||
Box::new(MyApp::new(cc))
|
||||
});
|
||||
eframe::run_native(
|
||||
"Custom 3D painting in eframe",
|
||||
options,
|
||||
Box::new(|cc| Box::new(MyApp::new(cc))),
|
||||
);
|
||||
}
|
||||
|
||||
struct MyApp {
|
||||
|
||||
Reference in New Issue
Block a user