Don't show some warning if there are errors
This commit is contained in:
parent
dd95d15b28
commit
45bd3ed1b7
8 changed files with 48 additions and 40 deletions
|
|
@ -1943,7 +1943,8 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
printer.Connection.PrintingItemName = printItemName;
|
||||
|
||||
var errors = printer.ValidateSettings(validatePrintBed: !printer.Bed.EditContext.IsGGCodeSource);
|
||||
var errors = new List<ValidationError>();
|
||||
printer.ValidateSettings(errors, validatePrintBed: !printer.Bed.EditContext.IsGGCodeSource);
|
||||
if (errors.Any(e => e.ErrorLevel == ValidationErrorLevel.Error))
|
||||
{
|
||||
this.ShowValidationErrors("Validation Error".Localize(), errors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue