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

@ -22,7 +22,7 @@ opt-level = 2
lto = false
[dependencies]
eframe = { git = "https://github.com/emilk/egui", default-features = false, branch = "eframe-app-creation-refactor" }
eframe = { git = "https://github.com/emilk/egui", default-features = false }
shadow-rs = { version = "0.9", default-features = false }
const_format = { version = "0.2.22", default-features = false, features = ["fmt"] }
cfg-if = "1.0.0"

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))),
);
}