diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 90143f4817..50a97f2a15 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -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() } } diff --git a/resources/qml/MachineAction.qml b/resources/qml/MachineAction.qml index ca8a22141d..59fb3946a3 100644 --- a/resources/qml/MachineAction.qml +++ b/resources/qml/MachineAction.qml @@ -7,4 +7,9 @@ Item property var finished: manager.finished onFinishedChanged: if(manager.finished) {completed()} signal completed() + + function reset() + { + manager.reset() + } } \ No newline at end of file diff --git a/resources/qml/Preferences/MachinesPage.qml b/resources/qml/Preferences/MachinesPage.qml index dcc5e3d9c1..8a0a7dc096 100644 --- a/resources/qml/Preferences/MachinesPage.qml +++ b/resources/qml/Preferences/MachinesPage.qml @@ -54,6 +54,7 @@ UM.ManagementPage onClicked: { actionDialog.content = machineActionRepeater.model[index].displayItem + machineActionRepeater.model[index].displayItem.reset() actionDialog.show() } }