Fix for incorrect message when creating a gcode file that is too big to load.

This commit is contained in:
Lars Brubaker 2015-05-20 12:36:34 -07:00
parent b1a5f4200c
commit df21f25361

View file

@ -865,7 +865,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
if (gcodeViewWidget != null
&& gcodeViewWidget.LoadedGCode == null)
{
if (GCodeFile.FileTooBigToLoad(printItem.FileLocation))
// If we have finished loading the gcode and the source file exists but we don't have any loaded gcode it is because the loaded decided to not load it.
if (File.Exists(printItem.FileLocation))
{
SetProcessingMessage(string.Format(fileTooBigToLoad, printItem.Name));
}