Merge pull request #265 from gregory-diaz/development

Fixed Add to Library bug where print item was getting added to UI but…
This commit is contained in:
Lars Brubaker 2015-05-21 16:53:50 -07:00
commit 1395676fe4

View file

@ -126,6 +126,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
}
PrintItems.Insert(indexToInsert, item);
OnItemAdded(new IndexArgs(indexToInsert));
item.PrintItem.PrintItemCollectionID = LibraryData.Instance.LibraryCollection.Id;
item.PrintItem.Commit();
}
public void RemoveItem(PrintItemWrapper printItemWrapper)