Running machine actions outside of first run is now possible

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-21 14:34:53 +02:00
parent 924af37dff
commit 181d16aad8
2 changed files with 20 additions and 2 deletions

View file

@ -63,7 +63,7 @@ Component
text: catalog.i18nc("@action:button","Move to Next Position"); text: catalog.i18nc("@action:button","Move to Next Position");
onClicked: onClicked:
{ {
manager.moveToNextLevelPosition()
} }
} }
@ -75,7 +75,9 @@ Component
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.getSize("default_margin").width : 0 anchors.leftMargin: parent.width < wizardPage.width ? UM.Theme.getSize("default_margin").width : 0
text: catalog.i18nc("@action:button","Skip bed leveling"); text: catalog.i18nc("@action:button","Skip bed leveling");
onClicked: {} onClicked:
{
}
} }
} }
} }

View file

@ -51,11 +51,27 @@ UM.ManagementPage
Button Button
{ {
text: machineActionRepeater.model[index].label; text: machineActionRepeater.model[index].label;
onClicked:
{
actionDialog.sourceComponent = machineActionRepeater.model[index].displayItem
actionDialog.show()
}
} }
} }
} }
UM.Dialog
{
id: actionDialog
// We need to use a property because a window has it's own context.
property var sourceComponent
Loader
{
sourceComponent: actionDialog.sourceComponent
}
}
Label Label
{ {