Show MakeModel if no profiles exist
This commit is contained in:
parent
a042133e0d
commit
981e28abc3
1 changed files with 6 additions and 7 deletions
|
|
@ -43,6 +43,7 @@ using MatterHackers.MatterControl.DataStorage;
|
|||
using MatterHackers.MatterControl.Library;
|
||||
using MatterHackers.MatterControl.PrinterControls.PrinterConnections;
|
||||
using MatterHackers.MatterControl.PrintLibrary;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
namespace MatterHackers.MatterControl.PartPreviewWindow
|
||||
|
|
@ -217,19 +218,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
var printButton = new TextButton("Print", theme)
|
||||
{
|
||||
Name = "Print Button",
|
||||
BackgroundColor = theme.AccentMimimalOverlay
|
||||
};
|
||||
printButton.Click += (s, e) =>
|
||||
{
|
||||
bool showAuthWindow = ApplicationController.GuestUserActive?.Invoke() ?? false;
|
||||
if (showAuthWindow)
|
||||
if (ProfileManager.Instance.Profiles.Count <= 0)
|
||||
{
|
||||
if (ApplicationSettings.Instance.get(ApplicationSettingsKey.SuppressAuthPanel) != "True")
|
||||
{
|
||||
//Launch window to prompt user to sign in
|
||||
UiThread.RunOnIdle(() => DialogWindow.Show(PrinterSetup.GetBestStartPage()));
|
||||
}
|
||||
//Launch window to prompt user to sign in
|
||||
UiThread.RunOnIdle(() => DialogWindow.Show(new SetupStepMakeModelName()));
|
||||
}
|
||||
|
||||
};
|
||||
this.AddChild(printButton);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue