Only show Welcome-Pages when needed. [CURA-6057]

This commit is contained in:
Remco Burema 2019-03-15 11:30:07 +01:00
parent 0f116fa3f4
commit 4a95564277
2 changed files with 10 additions and 7 deletions

View file

@ -45,7 +45,7 @@ UM.MainWindow
WelcomeDialog
{
id: welcomeDialog
visible: CuraApplication.needToShowUserAgreement
visible: true // True, so if somehow no preferences are found/loaded, it's shown anyway.
}
Rectangle
@ -83,6 +83,13 @@ UM.MainWindow
// This has been fixed for QtQuick Controls 2 since the Shortcut item has a context property.
Cura.Actions.parent = backgroundItem
CuraApplication.purgeWindows()
if (CuraApplication.needToShowUserAgreement)
{
welcomeDialog.visible = true;
welcomeDialog.currentStep = 0;
welcomeDialog.show();
}
}
Item