1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 01:39:23 +01:00

remove should remove the system

This commit is contained in:
Ellpeck 2019-08-10 21:39:35 +02:00
parent 0c8af5b9bf
commit 2ee2b2ec69

View file

@ -140,7 +140,7 @@ namespace MLEM.Ui.Elements {
public void RemoveChild(Element element) {
this.children.Remove(element);
element.Parent = null;
element.PropagateUiSystem(this.System);
element.PropagateUiSystem(null);
this.SetDirty();
}