Browse Source

Clarified `eframe::run_simple_native()` persistence (#4846)

* [x] I have followed the instructions in the PR template

Clarified that `eframe::run_simple_native()` does in fact save some
state (if persistence is enabled) but does not allow user to save state.
pull/4072/merge
Tyler Stevens 3 months ago
committed by GitHub
parent
commit
7736192722
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      crates/eframe/src/lib.rs

4
crates/eframe/src/lib.rs

@ -274,7 +274,9 @@ pub fn run_native(
/// The simplest way to get started when writing a native app.
///
/// This does NOT support persistence. For that you need to use [`run_native`].
/// This does NOT support persistence of custom user data. For that you need to use [`run_native`].
/// However, it DOES support persistence of egui data (window positions and sizes, how far the user has scrolled in a
/// [`ScrollArea`](egui::ScrollArea), etc.) if the persistence feature is enabled.
///
/// # Example
/// ``` no_run

Loading…
Cancel
Save