Make behaviors conditional on error level

This commit is contained in:
John Lewin 2019-01-17 16:33:09 -08:00
parent a1447fc3ea
commit cd5b08d4ae
4 changed files with 4 additions and 4 deletions

View file

@ -103,7 +103,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
if (doSlicing)
{
var errors = printer.ValidateSettings();
if (errors.Count > 0)
if (errors.Any(e => e.ErrorLevel == ValidationErrorLevel.Error))
{
doSlicing = false;
ApplicationController.Instance.ShowValidationErrors("Slicing Error".Localize(), errors);