Move page index logic into WelcomePagesModel

This commit is contained in:
Lipu Fei 2019-03-26 11:34:44 +01:00
parent 20bd9ea501
commit 418ad73a63
5 changed files with 126 additions and 73 deletions

View file

@ -76,12 +76,11 @@ UM.MainWindow
if (CuraApplication.needToShowUserAgreement)
{
welcomeDialog.visible = true;
welcomeDialog.currentStep = 0;
welcomeDialog.show()
}
else
{
welcomeDialog.visible = false;
welcomeDialog.close()
}
// TODO: While the new onboarding process contains the user-agreement,
// it should probably not entirely rely on 'needToShowUserAgreement' for show/hide.