From a3aa7d8332f6878585ce4522b07ebcebcdbf67da Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Wed, 20 Mar 2019 17:19:07 -0700 Subject: [PATCH] Check if the page has been closed - needs investigation why we are closing multiple times --- MatterControlLib/CustomWidgets/XyCalibrationCollectDataPage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MatterControlLib/CustomWidgets/XyCalibrationCollectDataPage.cs b/MatterControlLib/CustomWidgets/XyCalibrationCollectDataPage.cs index a4b267f44..d14d03c60 100644 --- a/MatterControlLib/CustomWidgets/XyCalibrationCollectDataPage.cs +++ b/MatterControlLib/CustomWidgets/XyCalibrationCollectDataPage.cs @@ -108,7 +108,8 @@ namespace MatterHackers.MatterControl public override void OnClosed(EventArgs e) { // save the offsets to the extruder - if (xyCalibrationData.XPick != -1 + if (!HasBeenClosed + && xyCalibrationData.XPick != -1 && xyCalibrationData.YPick != -1) { var hotendOffset = printer.Settings.Helpers.ExtruderOffset(xyCalibrationData.ExtruderToCalibrateIndex);