mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:05:53 +08:00
Fix reentry of add machine wizard when skipping bedleveling
This commit is contained in:
parent
1e7de43934
commit
b519c910ea
@ -107,7 +107,18 @@ Item
|
|||||||
anchors.left: parent.width < wizardPage.width ? bedlevelingButton.right : parent.left
|
anchors.left: parent.width < wizardPage.width ? bedlevelingButton.right : parent.left
|
||||||
anchors.leftMargin: parent.width < wizardPage.width ? UM.Theme.sizes.default_margin.width : 0
|
anchors.leftMargin: parent.width < wizardPage.width ? UM.Theme.sizes.default_margin.width : 0
|
||||||
text: catalog.i18nc("@action:button","Skip Bedleveling");
|
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…
x
Reference in New Issue
Block a user