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:
parent
57646852ee
commit
4174b0f77d
4 changed files with 22 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue