Added completed signal to machine action, so model can notify display that it is completed

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-21 16:19:44 +02:00
parent 181d16aad8
commit 65751d7400
4 changed files with 29 additions and 8 deletions

View file

@ -53,7 +53,7 @@ UM.ManagementPage
text: machineActionRepeater.model[index].label;
onClicked:
{
actionDialog.sourceComponent = machineActionRepeater.model[index].displayItem
actionDialog.content = machineActionRepeater.model[index].displayItem
actionDialog.show()
}
}
@ -63,13 +63,11 @@ UM.ManagementPage
UM.Dialog
{
id: actionDialog
// We need to use a property because a window has it's own context.
property var sourceComponent
Loader
property var content
onContentChanged:
{
sourceComponent: actionDialog.sourceComponent
contents = content;
content.onCompleted.connect(hide)
}
}