mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 07:09:02 +08:00
Actions are now reset before every run
CURA-1385
This commit is contained in:
parent
dcafb7d83a
commit
d5b07d29de
@ -792,17 +792,14 @@ UM.MainWindow
|
||||
|
||||
for (var i = 0; i < actions.length; i++)
|
||||
{
|
||||
actions[i].displayItem.reset()
|
||||
firstRunWizard.appendPage(actions[i].displayItem, catalog.i18nc("@title", actions[i].label));
|
||||
//firstRunWizard.appendPage(actions[i].displayItem, catalog.i18nc("@title","blarg"));
|
||||
console.log("ZOMGIE", i, actions[i].displayItem)
|
||||
//firstRunWizard.appendPage(test, catalog.i18nc("@title", "Add Printer"));
|
||||
}
|
||||
|
||||
//Only start if there are actions to perform.
|
||||
if (actions.length > 0)
|
||||
{
|
||||
firstRunWizard.currentPage = 0;
|
||||
console.log(firstRunWizard.currentPage)
|
||||
show()
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,9 @@ Item
|
||||
property var finished: manager.finished
|
||||
onFinishedChanged: if(manager.finished) {completed()}
|
||||
signal completed()
|
||||
|
||||
function reset()
|
||||
{
|
||||
manager.reset()
|
||||
}
|
||||
}
|
@ -54,6 +54,7 @@ UM.ManagementPage
|
||||
onClicked:
|
||||
{
|
||||
actionDialog.content = machineActionRepeater.model[index].displayItem
|
||||
machineActionRepeater.model[index].displayItem.reset()
|
||||
actionDialog.show()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user