mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Box the app creator (#1373)
This commit is contained in:
@@ -4,7 +4,11 @@ use eframe::egui;
|
||||
|
||||
fn main() {
|
||||
let options = eframe::NativeOptions::default();
|
||||
eframe::run_native("My egui App", options, |_cc| Box::new(MyApp::default()));
|
||||
eframe::run_native(
|
||||
"My egui App",
|
||||
options,
|
||||
Box::new(|_cc| Box::new(MyApp::default())),
|
||||
);
|
||||
}
|
||||
|
||||
struct MyApp {
|
||||
|
||||
Reference in New Issue
Block a user