mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Added machine action dialog optional
Based on this change, users will be able to run their machine action plugins code just by clicking the action button, so without having to open a modal.
This commit is contained in:
parent
ed14e3bd44
commit
75840426d7
2 changed files with 29 additions and 4 deletions
|
|
@ -74,10 +74,14 @@ UM.ManagementPage
|
|||
onClicked:
|
||||
{
|
||||
var currentItem = machineActionRepeater.model[index]
|
||||
actionDialog.loader.manager = currentItem
|
||||
actionDialog.loader.source = currentItem.qmlPath
|
||||
actionDialog.title = currentItem.label
|
||||
actionDialog.show()
|
||||
if (currentItem.openAsDialog()) {
|
||||
actionDialog.loader.manager = currentItem
|
||||
actionDialog.loader.source = currentItem.qmlPath
|
||||
actionDialog.title = currentItem.label
|
||||
actionDialog.show()
|
||||
} else {
|
||||
currentItem.execute()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue