back to egui main branch

This commit is contained in:
Simon Gardling
2022-03-18 13:05:45 -04:00
parent ab31d19db0
commit 3f329bbb9b
3 changed files with 7 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ cfg_if::cfg_if! {
log_helper("Finished initializing!");
log_helper("Starting App...");
eframe::start_web("canvas", |cc| Box::new(egui_app::MathApp::new(cc)))
eframe::start_web("canvas", Box::new(|cc| Box::new(egui_app::MathApp::new(cc))))
}
}
}

View File

@@ -14,7 +14,9 @@ fn main() {
drag_and_drop_support: true,
..Default::default()
};
eframe::run_native("(Yet-to-be-named) Graphing Software", options, |cc| {
Box::new(egui_app::MathApp::new(cc))
});
eframe::run_native(
"(Yet-to-be-named) Graphing Software",
options,
Box::new(|cc| Box::new(egui_app::MathApp::new(cc))),
);
}