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:
parent
f47bfcbc63
commit
9edde00fcf
3 changed files with 24 additions and 8 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue