Reuse new wizard launcher, switch to incomplete stage mode
This commit is contained in:
parent
a2fc4b916a
commit
1c08ccadeb
2 changed files with 19 additions and 4 deletions
|
|
@ -2367,10 +2367,15 @@ namespace MatterHackers.MatterControl
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// If leveling is required or is currently on
|
if (PrinterCalibrationWizard.SetupRequired(printer))
|
||||||
if(this.RunAnyRequiredPrinterSetup(printer, this.Theme))
|
|
||||||
{
|
{
|
||||||
// We need to calibrate. So, don't print this part.
|
UiThread.RunOnIdle(() =>
|
||||||
|
{
|
||||||
|
DialogWindow.Show(
|
||||||
|
new PrinterCalibrationWizard(printer, AppContext.Theme),
|
||||||
|
advanceToIncompleteStage: true);
|
||||||
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,17 @@ namespace MatterHackers.MatterControl
|
||||||
{
|
{
|
||||||
if (sender is PrinterConfig printer)
|
if (sender is PrinterConfig printer)
|
||||||
{
|
{
|
||||||
ApplicationController.Instance.RunAnyRequiredPrinterSetup(printer, ApplicationController.Instance.Theme);
|
if (PrinterCalibrationWizard.SetupRequired(printer))
|
||||||
|
{
|
||||||
|
UiThread.RunOnIdle(() =>
|
||||||
|
{
|
||||||
|
DialogWindow.Show(
|
||||||
|
new PrinterCalibrationWizard(printer, AppContext.Theme),
|
||||||
|
advanceToIncompleteStage: true);
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue