Getting the printer setup wizard to run on desktop when required.

This commit is contained in:
Lars Brubaker 2016-06-06 12:43:05 -07:00
parent c595e05cc2
commit 1ffcd02209
2 changed files with 8 additions and 1 deletions

View file

@ -53,6 +53,7 @@ using System.Threading.Tasks;
using MatterHackers.GCodeVisualizer;
using Gaming.Game;
using MatterHackers.GuiAutomation;
using MatterHackers.MatterControl.PrinterControls.PrinterConnections;
namespace MatterHackers.MatterControl
{
@ -659,6 +660,12 @@ namespace MatterHackers.MatterControl
#endif
AfterFirstDraw?.Invoke();
if (ActiveSliceSettings.ProfileData.Profiles.Count == 0)
{
// Start the setup wizard if no profiles exist
UiThread.RunOnIdle(() => WizardWindow.Show());
}
}
//msGraph.AddData("ms", totalDrawTime.ElapsedMilliseconds);

View file

@ -71,9 +71,9 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
printerModelContainer = CreateSelectionContainer("Model".Localize(), "Select the printer model".Localize(), printerModelSelector);
//Add inputs to main container
contentRow.AddChild(createPrinterNameContainer());
contentRow.AddChild(printerMakeContainer);
contentRow.AddChild(printerModelContainer);
contentRow.AddChild(createPrinterNameContainer());
//Construct buttons
nextButton = textImageButtonFactory.Generate("Save & Continue".Localize());