mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 01:39:23 +01:00
set the area dirty when adding/removing ui elements
This commit is contained in:
parent
2d35322a5f
commit
89f957f8b6
1 changed files with 2 additions and 0 deletions
|
@ -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