1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

set the area dirty when adding/removing ui elements

This commit is contained in:
Ellpeck 2019-11-18 02:20:09 +01:00
parent 2d35322a5f
commit 89f957f8b6

View file

@ -134,6 +134,7 @@ namespace MLEM.Ui {
root.Element.AndChildren(e => {
e.Root = root;
e.System = this;
e.SetAreaDirty();
});
return true;
}
@ -147,6 +148,7 @@ namespace MLEM.Ui {
root.Element.AndChildren(e => {
e.Root = null;
e.System = null;
e.SetAreaDirty();
});
}