Fixing tests
This commit is contained in:
parent
dde57d537f
commit
b88416163c
2 changed files with 12 additions and 3 deletions
|
|
@ -292,10 +292,16 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
|
|||
{
|
||||
string thumbnailDestFile = PartThumbnailWidget.GetImageFileName(printItemToAdd);
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(thumbnailDestFile));
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(thumbnailDestFile));
|
||||
|
||||
// copy it to the right place
|
||||
File.Copy(thumbnailSourceFile, thumbnailDestFile);
|
||||
// copy it to the right place
|
||||
File.Copy(thumbnailSourceFile, thumbnailDestFile, true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
QueueData.Instance.AddItem(printItemToAdd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue