Revise LibraryQueueViewRefreshesOnAddItem test

- Fix naming issue with SaveAs->LocalLibrary
This commit is contained in:
John Lewin 2017-06-05 22:51:28 -07:00
parent e33e7d89cd
commit 9389281ba8
3 changed files with 31 additions and 35 deletions

View file

@ -176,7 +176,8 @@ namespace MatterHackers.MatterControl.Library
{
using (var stream = File.OpenRead(filePath))
{
AddItem(stream, Path.GetExtension(filePath).ToUpper(), PrintItemWrapperExtensionMethods.GetFriendlyName(Path.GetFileNameWithoutExtension(filePath)));
string itemName = item.Name ?? Path.GetFileNameWithoutExtension(filePath);
AddItem(stream, Path.GetExtension(filePath).ToUpper(), PrintItemWrapperExtensionMethods.GetFriendlyName(itemName));
}
}
}