1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

actually take path for FileStorage::from_path

This commit is contained in:
Tom Solberg
2020-12-10 18:35:48 +01:00
parent 8c82eb1970
commit 601e4f3e09
5 changed files with 15 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ fn main() {
let title = "My Egui Window";
// Persist app state to file:
let storage = egui_glium::storage::FileStorage::from_path(".egui_example_glium.json".into());
let storage = egui_glium::storage::FileStorage::from_path(".egui_example_glium.json");
// Alternative: store nowhere
// let storage = egui::app::DummyStorage::default();