mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Only show Welcome-Pages when needed. [CURA-6057]
This commit is contained in:
parent
0f116fa3f4
commit
4a95564277
2 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue