1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 02:09:24 +01:00

fixed an exception when a panel that is not currently part of a ui has a child removed (since 3127ad5)

This commit is contained in:
Ell 2023-05-26 23:08:45 +02:00
parent 34cb5210b5
commit f5f925fab3

View file

@ -136,7 +136,8 @@ namespace MLEM.Ui.Elements {
// when removing children, our scroll bar might have to be hidden
// if we don't do this before adding children again, they might incorrectly assume that the scroll bar will still be visible and adjust their size accordingly
this.ScrollSetup();
if (this.System != null)
this.ScrollSetup();
}
/// <inheritdoc />