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

[egui_glium] Your app state will auto-save to a good directory

Directory found with https://docs.rs/directories-next/2.0.0/directories_next/struct.ProjectDirs.html#method.data_dir
This commit is contained in:
Emil Ernerfeldt
2020-12-19 21:06:59 +01:00
parent 89937bf636
commit 8f034d391d
5 changed files with 114 additions and 22 deletions

View File

@@ -7,8 +7,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## Unreleased
### Added
* `egui_glium` will auto-save your app state every 30 seconds.
### Changed
* `egui_glium` will now save you app state to [a better directory](https://docs.rs/directories-next/2.0.0/directories_next/struct.ProjectDirs.html#method.data_dir)
* `egui_glium::run`: the parameter `app` now has signature `Box<dyn App>` (you need to add `Box::new(app)` to your code).
* Window title is now passed via the `trait` function `egui::App::name()`