Components: Unparent on dispose

This commit is contained in:
Bilal Elmoussaoui 2022-03-31 14:51:41 +02:00 committed by Julian Sparber
parent 0491c75ec7
commit 3ec44cfd1d

View file

@ -97,6 +97,10 @@ mod imp {
self.revealer.set_child(Some(&self.status));
}
fn dispose(&self, _obj: &Self::Type) {
self.overlay.unparent();
}
}
impl WidgetImpl for DragOverlay {}
impl BinImpl for DragOverlay {}