mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 05:11:04 -07:00
Show welcome page if no printer
This commit is contained in:
parent
6843fb1ffb
commit
1dd48c5728
2 changed files with 7 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue