Make disable leveling per printer rather than static

issue: MatterHackers/MCCentral#4722
Running Pulse Bed leveling while using multiple printers in Single-Windows causes the prints to fail
This commit is contained in:
LarsBrubaker 2018-12-22 08:30:29 -08:00
parent da12a115e0
commit b0e1a0fadc
8 changed files with 15 additions and 10 deletions

View file

@ -86,7 +86,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
// Invoke setter forcing persistence of leveling data
printer.Settings.Helpers.SetPrintLevelingData(levelingData, true);
PrintLevelingStream.AllowLeveling = true;
printer.Connection.AllowLeveling = true;
printer.Settings.Helpers.DoPrintLeveling(true);
if (printer.Settings.GetValue<bool>(SettingsKey.z_homes_to_max))