mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Added remove method for CollapsingState. (#3252)
This commit is contained in:
@@ -36,6 +36,10 @@ impl CollapsingState {
|
|||||||
ctx.data_mut(|d| d.insert_persisted(self.id, self.state));
|
ctx.data_mut(|d| d.insert_persisted(self.id, self.state));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn remove(&self, ctx: &Context) {
|
||||||
|
ctx.data_mut(|d| d.remove::<InnerState>(self.id));
|
||||||
|
}
|
||||||
|
|
||||||
pub fn id(&self) -> Id {
|
pub fn id(&self) -> Id {
|
||||||
self.id
|
self.id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user