mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Box the app creator (#1373)
This commit is contained in:
@@ -11,7 +11,11 @@ fn main() {
|
||||
initial_window_size: Some(egui::vec2(1000.0, 700.0)),
|
||||
..Default::default()
|
||||
};
|
||||
eframe::run_native("svg example", options, |_cc| Box::new(MyApp::default()));
|
||||
eframe::run_native(
|
||||
"svg example",
|
||||
options,
|
||||
Box::new(|_cc| Box::new(MyApp::default())),
|
||||
);
|
||||
}
|
||||
|
||||
struct MyApp {
|
||||
|
||||
Reference in New Issue
Block a user