mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Running machine actions outside of first run is now possible
CURA-1385
This commit is contained in:
parent
924af37dff
commit
181d16aad8
2 changed files with 20 additions and 2 deletions
|
@ -51,11 +51,27 @@ UM.ManagementPage
|
|||
Button
|
||||
{
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue