mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 14:38:34 +01:00
actually do this beforehand so that nothing crashes from having no system all of a sudden
This commit is contained in:
parent
bb99a76f61
commit
70f926eb49
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue