Clear bed should invalidate GCode render data

- Disable 'File Not Found' messages on empty LoadedGCode
- Issue MatterHackers/MCCentral#2088
Clear bed should invalidate GCode render data
This commit is contained in:
John Lewin 2017-10-17 12:55:58 -07:00
parent f47bfcbc63
commit 9edde00fcf
3 changed files with 24 additions and 8 deletions

View file

@ -98,10 +98,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
VAnchor = VAnchor.Stretch
};
if (!File.Exists(sceneContext.GCodePath))
{
SetProcessingMessage($"{fileNotFoundMessage}\n'{sceneContext.GCodePath}'");
}
//if (!File.Exists(sceneContext.GCodePath))
//{
// SetProcessingMessage($"{fileNotFoundMessage}\n'{sceneContext.GCodePath}'");
//}
mainContainerTopToBottom.AddChild(gcodeDisplayWidget);
@ -109,10 +109,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
// *************** AddGCodeFileControls ***************
SetProcessingMessage("");
if (sceneContext.LoadedGCode == null)
{
SetProcessingMessage($"{fileNotFoundMessage}\n'{sceneContext.GCodePath}'");
}
//if (sceneContext.LoadedGCode == null)
//{
// SetProcessingMessage($"{fileNotFoundMessage}\n'{sceneContext.GCodePath}'");
//}
if (sceneContext.LoadedGCode?.LineCount > 0)
{