Add conditional logic for bed validation

- Issue MatterHackers/MCCentral#5397
export as gcode test failing due to empty bed requirement
This commit is contained in:
John Lewin 2019-04-30 08:19:29 -07:00
parent 1107610bda
commit 50f3dab1a0
4 changed files with 6 additions and 5 deletions

View file

@ -124,7 +124,7 @@ namespace MatterHackers.MatterControl
if (gcodeExportButton.Checked)
{
var errors = printer.ValidateSettings();
var errors = printer.ValidateSettings(validatePrintBed: false);
exportButton.Enabled = !errors.Any(item => item.ErrorLevel == ValidationErrorLevel.Error);