Show welcome page if no printer

This commit is contained in:
Lipu Fei 2019-03-26 16:21:07 +01:00
parent 6843fb1ffb
commit 1dd48c5728
2 changed files with 7 additions and 6 deletions

View file

@ -74,13 +74,13 @@ UM.MainWindow
Cura.Actions.parent = backgroundItem
CuraApplication.purgeWindows()
if (CuraApplication.needToShowUserAgreement)
if (CuraApplication.needToShowUserAgreement || Cura.MachineManager.activeMachine == null)
{
welcomeDialog.show()
welcomeDialog.visible = true
}
else
{
welcomeDialog.close()
welcomeDialog.visible = false
}
// TODO: While the new onboarding process contains the user-agreement,
// it should probably not entirely rely on 'needToShowUserAgreement' for show/hide.