Add support for launching into next incomplete stage
This commit is contained in:
parent
50e2419d72
commit
a2fc4b916a
1 changed files with 9 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ namespace MatterHackers.MatterControl
|
|||
return wizardWindow;
|
||||
}
|
||||
|
||||
public static DialogWindow Show(IStagedSetupWizard setupWizard)
|
||||
public static DialogWindow Show(IStagedSetupWizard setupWizard, bool advanceToIncompleteStage = false)
|
||||
{
|
||||
var type = setupWizard.GetType();
|
||||
|
||||
|
|
@ -100,7 +100,14 @@ namespace MatterHackers.MatterControl
|
|||
var homePage = setupWizard.HomePageGenerator();
|
||||
SetSizeAndShow(wizardWindow, homePage);
|
||||
|
||||
wizardWindow.ChangeToPage(homePage);
|
||||
if (advanceToIncompleteStage)
|
||||
{
|
||||
wizardWindow.NextIncompleteStage();
|
||||
}
|
||||
else
|
||||
{
|
||||
wizardWindow.ChangeToPage(homePage);
|
||||
}
|
||||
|
||||
return wizardWindow;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue