Check if the page has been closed

- needs investigation why we are closing multiple times
This commit is contained in:
Lars Brubaker 2019-03-20 17:19:07 -07:00
parent 1051c57be5
commit a3aa7d8332

View file

@ -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);