Make User-Agreement work with new 'WizadPanel'. [CURA-6057]

This commit is contained in:
Remco Burema 2019-03-29 09:23:10 +01:00
parent d34b3b8585
commit 1cebf145f5
3 changed files with 10 additions and 3 deletions

View file

@ -83,7 +83,7 @@ Item
onClicked:
{
CuraApplication.writeToLog("i", "User declined the User Agreement.")
base.passLastPage()
base.endWizard()
CuraApplication.closeApplication() // NOTE: Hard exit, don't use if anything needs to be saved!
}
}

View file

@ -28,11 +28,13 @@ Item
signal showNextPage()
signal showPreviousPage()
signal goToPage(string page_id) // Go to a specific page by the given page_id.
signal endWizard()
// Call the corresponding functions in the model
onShowNextPage: model.goToNextPage()
onShowPreviousPage: model.goToPreviousPage()
onGoToPage: model.goToPage(page_id)
onEndWizard: model.atEnd()
Rectangle // Panel background
{