mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:45:54 +08:00
Pages are now reset when adding a new machine.
Contributes to Ultimaker/Cura#353
This commit is contained in:
parent
926ac69c71
commit
98ee8cab85
@ -24,6 +24,12 @@ Item
|
|||||||
target: base.wizard
|
target: base.wizard
|
||||||
onNextClicked: //You can add functions here that get triggered when the final button is clicked in the wizard-element
|
onNextClicked: //You can add functions here that get triggered when the final button is clicked in the wizard-element
|
||||||
{
|
{
|
||||||
|
var old_page_count = base.wizard.getPageCount()
|
||||||
|
// Delete old pages (if any)
|
||||||
|
for (var i = old_page_count - 1; i > 0; i--)
|
||||||
|
{
|
||||||
|
base.wizard.removePage(i)
|
||||||
|
}
|
||||||
saveMachine()
|
saveMachine()
|
||||||
}
|
}
|
||||||
onBackClicked:
|
onBackClicked:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user