Skip to content

Commit

Permalink
Link NativeOptions::persitence_path from App::save
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed May 27, 2024
1 parent 1a2e7c2 commit cd222ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/eframe/src/epi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub trait App {
/// On web the state is stored to "Local Storage".
///
/// On native the path is picked using [`crate::storage_dir`].
/// The path can be customized via [`NativeOptions::persistence_path`].
fn save(&mut self, _storage: &mut dyn Storage) {}

/// Called once on shutdown, after [`Self::save`].
Expand Down

0 comments on commit cd222ec

Please sign in to comment.