diff --git a/crates/egui/src/containers/area.rs b/crates/egui/src/containers/area.rs index d66f6a14170..23db25c5380 100644 --- a/crates/egui/src/containers/area.rs +++ b/crates/egui/src/containers/area.rs @@ -8,12 +8,8 @@ use crate::*; /// /// Areas back [`crate::Window`]s and other floating containers, /// like tooltips and the popups of [`crate::ComboBox`]. -/// -/// Area state is intentionally NOT persisted between sessions, -/// so that a bad tooltip or menu size won't be remembered forever. -/// A resizable [`Window`] remembers the size the user picked using -/// the state in the [`Resize`] container. #[derive(Clone, Copy, Debug)] +#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] pub struct AreaState { /// Last known position of the pivot. pub pivot_pos: Pos2, diff --git a/crates/egui/src/memory.rs b/crates/egui/src/memory.rs index 475fe8b85a8..a8fd55c654f 100644 --- a/crates/egui/src/memory.rs +++ b/crates/egui/src/memory.rs @@ -934,9 +934,6 @@ impl Memory { #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serde", serde(default))] pub struct Areas { - /// Area state is intentionally NOT persisted between sessions, - /// so that a bad tooltip or menu size won't be remembered forever. - #[cfg_attr(feature = "serde", serde(skip))] areas: IdMap, /// Back-to-front. Top is last.