Use ISetupWizard compatible exit mechanism - ClosePage()

- Issue MatterHackers/MCCentral#5443
After loading filament into T0 the xy calibration wizard was closed
This commit is contained in:
jlewin 2019-05-07 17:10:07 -07:00
parent 307ecaba5f
commit b5eb774c73
2 changed files with 13 additions and 7 deletions

View file

@ -239,7 +239,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
};
loadFilamentButton.Click += (s, e) =>
{
loadFilamentButton.Parents<SystemWindow>().First().Close();
this.DialogWindow.ClosePage();
DialogWindow.Show(
new LoadFilamentWizard(printer, extruderIndex, showAlreadyLoadedButton: false));