1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +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) if (root == null)
return; return;
this.rootElements.Remove(root); this.rootElements.Remove(root);
root.SelectElement(null);
root.Element.AndChildren(e => { root.Element.AndChildren(e => {
e.Root = null; e.Root = null;
e.System = null; e.System = null;
}); });
root.SelectElement(null);
} }
public RootElement Get(string name) { public RootElement Get(string name) {