1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

trait App now has fn name() for specifying egui_glium window title

This commit is contained in:
Emil Ernerfeldt
2020-12-18 22:30:59 +01:00
parent 71449fe61c
commit b0e17638df
9 changed files with 22 additions and 8 deletions

View File

@@ -3,8 +3,6 @@
#![warn(clippy::all)]
fn main() {
let title = "Egui glium demo";
// Persist app state to file:
let storage = egui_glium::storage::FileStorage::from_path(".egui_demo_glium.json");
@@ -12,5 +10,5 @@ fn main() {
// let storage = egui::app::DummyStorage::default();
let app: egui::DemoApp = egui::app::get_value(&storage, egui::app::APP_KEY).unwrap_or_default();
egui_glium::run(title, Box::new(storage), Box::new(app));
egui_glium::run(Box::new(storage), Box::new(app));
}