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:
parent
bb99a76f61
commit
70f926eb49
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue