Move add printer logic to Part -> Print button

- Later make reusable from Add Hardware and Print button
- Issue MatterHackers/MCCentral#4294
This commit is contained in:
John Lewin 2018-10-16 11:41:30 -07:00
parent 57646852ee
commit 4174b0f77d
4 changed files with 22 additions and 18 deletions

View file

@ -1736,15 +1736,7 @@ namespace MatterHackers.MatterControl
public void OnLoadActions()
{
bool showAuthWindow = ApplicationController.GuestUserActive?.Invoke() ?? false;
if (showAuthWindow)
{
if (ApplicationSettings.Instance.get(ApplicationSettingsKey.SuppressAuthPanel) != "True")
{
//Launch window to prompt user to sign in
UiThread.RunOnIdle(() => DialogWindow.Show(PrinterSetup.GetBestStartPage()));
}
}
else
if (!showAuthWindow)
{
//If user in logged in sync before checking to prompt to create printer
if (ApplicationController.SyncPrinterProfiles == null)