mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Fix reentry of add machine wizard when skipping bedleveling
This commit is contained in:
parent
1e7de43934
commit
b519c910ea
1 changed files with 12 additions and 1 deletions
|
@ -107,7 +107,18 @@ Item
|
|||
anchors.left: parent.width < wizardPage.width ? bedlevelingButton.right : parent.left
|
||||
anchors.leftMargin: parent.width < wizardPage.width ? UM.Theme.sizes.default_margin.width : 0
|
||||
text: catalog.i18nc("@action:button","Skip Bedleveling");
|
||||
onClicked: base.visible = false;
|
||||
onClicked: {
|
||||
if(wizardPage.wizard.lastPage == true){
|
||||
var old_page_count = wizardPage.wizard.getPageCount()
|
||||
// Delete old pages (if any)
|
||||
for (var i = old_page_count - 1; i > 0; i--)
|
||||
{
|
||||
wizardPage.wizard.removePage(i)
|
||||
}
|
||||
wizardPage.wizard.currentPage = 0
|
||||
wizardPage.wizard.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue