mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Added completed signal to machine action, so model can notify display that it is completed
CURA-1385
This commit is contained in:
parent
181d16aad8
commit
65751d7400
4 changed files with 29 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue