Skip to content

Commit

Permalink
Added remove method for CollapsingState. (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmackdev authored Aug 14, 2023
1 parent e5428a3 commit 8ee506e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/egui/src/containers/collapsing_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ impl CollapsingState {
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 {
self.id
}
Expand Down

0 comments on commit 8ee506e

Please sign in to comment.