Fix how onboarding flow is shown

CURA-6447
This commit is contained in:
Lipu Fei 2019-04-10 07:16:06 +02:00
parent 61ee2ec85c
commit b692787def
2 changed files with 73 additions and 33 deletions

View file

@ -84,7 +84,7 @@ UM.MainWindow
Cura.Actions.parent = backgroundItem
CuraApplication.purgeWindows()
if (CuraApplication.needToShowUserAgreement)
if (CuraApplication.getWelcomePagesModel().shouldShowWelcomeFlow)
{
welcomeDialogItem.visible = true
}
@ -92,8 +92,6 @@ UM.MainWindow
{
welcomeDialogItem.visible = false
}
// TODO: While the new onboarding process contains the user-agreement,
// it should probably not entirely rely on 'needToShowUserAgreement' for show/hide.
}
Item