mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Merge pull request #5460 from Ultimaker/WIP_onboarding_by_ip
'WIP-onboarding-by-ip' into 'parent' branch
This commit is contained in:
commit
139edbb0b7
12 changed files with 130 additions and 247 deletions
|
@ -45,7 +45,7 @@ UM.MainWindow
|
|||
WelcomeDialog
|
||||
{
|
||||
id: welcomeDialog
|
||||
visible: false
|
||||
visible: true // True, so if somehow no preferences are found/loaded, it's shown anyway.
|
||||
}
|
||||
|
||||
Rectangle
|
||||
|
@ -73,6 +73,18 @@ 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;
|
||||
}
|
||||
else
|
||||
{
|
||||
welcomeDialog.visible = false;
|
||||
}
|
||||
// TODO: While the new onboarding process contains the user-agreement,
|
||||
// it should probably not entirely rely on 'needToShowUserAgreement' for show/hide.
|
||||
}
|
||||
|
||||
Item
|
||||
|
@ -828,16 +840,6 @@ UM.MainWindow
|
|||
{
|
||||
base.visible = true;
|
||||
}
|
||||
|
||||
// check later if the user agreement dialog has been closed
|
||||
if (CuraApplication.needToShowUserAgreement)
|
||||
{
|
||||
restart();
|
||||
}
|
||||
else if(Cura.MachineManager.activeMachine == null)
|
||||
{
|
||||
addMachineDialog.open();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue