Library treeview should always be rooted to RootLibraryContainer

- Issue MatterHackers/MCCentral#4346
Empty Library treeview
This commit is contained in:
John Lewin 2018-10-25 08:37:04 -07:00
parent f303f5fc5c
commit 55155f647c

View file

@ -336,7 +336,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
UiThread.RunOnIdle(() =>
{
foreach (var item in ApplicationController.Instance.Library.ActiveContainer.ChildContainers)
foreach (var item in ApplicationController.Instance.Library.RootLibaryContainer.ChildContainers)
{
var rootNode = this.CreateTreeNode(item);
rootNode.TreeView = treeView;