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

actually do this beforehand so that nothing crashes from having no system all of a sudden

This commit is contained in:
Ellpeck 2019-09-09 18:53:10 +02:00
parent bb99a76f61
commit 70f926eb49

View file

@ -128,11 +128,11 @@ namespace MLEM.Ui {
if (root == null)
return;
this.rootElements.Remove(root);
root.SelectElement(null);
root.Element.AndChildren(e => {
e.Root = null;
e.System = null;
});
root.SelectElement(null);
}
public RootElement Get(string name) {