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

Remove the directories dependency (#4904)

eframe now has its own logic to find the storage_dir to persist the app
when the persistence feature is enabled, instead of using the
directories crate. The directory should be the same as before (verified
with a unit test).

* Closes <https://github.com/emilk/egui/issues/4884>
* [x] I have followed the instructions in the PR template
This commit is contained in:
YgorSouza
2024-09-01 10:47:28 +02:00
committed by GitHub
parent 2a6a1302b8
commit edea5a40b9
5 changed files with 107 additions and 11 deletions

View File

@@ -351,8 +351,8 @@ pub struct NativeOptions {
/// persisted (only if the "persistence" feature is enabled).
pub persist_window: bool,
/// The folder where `eframe` will store the app state. If not set, eframe will get the paths
/// from [directories].
/// The folder where `eframe` will store the app state. If not set, eframe will use a default
/// data storage path for each target system.
pub persistence_path: Option<std::path::PathBuf>,
/// Controls whether to apply dithering to minimize banding artifacts.