Make sure we only ask to level the x carriage if we have not leveled in

probe calibration
This commit is contained in:
Lars Brubaker 2019-04-11 14:18:43 -07:00
parent a2e3c4f2ac
commit fd2b9e380a

View file

@ -152,8 +152,9 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
levelingStrings.HomingPageInstructions(true, false),
false);
// if there is a level_x_carriage_markdown oem markdown page
if (!string.IsNullOrEmpty(printer.Settings.GetValue(SettingsKey.level_x_carriage_markdown)))
// if we have not run leveling yet and there is a level_x_carriage_markdown oem markdown page
if (LevelingValidation.NeedsToBeRun(printer)
&& !string.IsNullOrEmpty(printer.Settings.GetValue(SettingsKey.level_x_carriage_markdown)))
{
yield return PrintLevelingWizard.GetLevelXCarriagePage(this, printer);
}