Try to delay giving notice that a 3d model has been save until the os is likely to have released it from writing.

This commit is contained in:
Lars Brubaker 2015-11-04 12:20:20 -08:00
parent 000c86aae3
commit 80791704f8
2 changed files with 3 additions and 2 deletions

View file

@ -1873,7 +1873,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
MeshFileIo.Save(asynchMeshGroups, printItemWrapper.FileLocation, outputInfo);
printItemWrapper.ReportFileChange();
// Wait for a second to report the file changed to give the OS a chance to finish closing it.
UiThread.RunOnIdle(printItemWrapper.ReportFileChange, 3);
if (returnInfo != null
&& returnInfo.destinationLibraryProvider != null)