mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-16 10:44:32 +02:00
set the area dirty when adding/removing ui elements
This commit is contained in:
parent
2d35322a5f
commit
89f957f8b6
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue