mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Add eframe::storage_dir (#3286)
* Add `eframe::storage_dir` Now you can easily tell where eframe stores its state * egui_plot: work even without the `serde` featur flag
This commit is contained in:
@@ -331,7 +331,7 @@ pub fn handle_app_output(
|
||||
/// For loading/saving app state and/or egui memory to disk.
|
||||
pub fn create_storage(_app_name: &str) -> Option<Box<dyn epi::Storage>> {
|
||||
#[cfg(feature = "persistence")]
|
||||
if let Some(storage) = super::file_storage::FileStorage::from_app_name(_app_name) {
|
||||
if let Some(storage) = super::file_storage::FileStorage::from_app_id(_app_name) {
|
||||
return Some(Box::new(storage));
|
||||
}
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user