mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
4c3860e06a
2 changed files with 8 additions and 1 deletions
|
@ -180,6 +180,12 @@ class StartSliceJob(Job):
|
||||||
setting.value = str(stack.getProperty(key, "value")).encode("utf-8")
|
setting.value = str(stack.getProperty(key, "value")).encode("utf-8")
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
|
||||||
|
# ALso send the material GUID as a setting.
|
||||||
|
material_instance_container = stack.findContainer({"type": "material"})
|
||||||
|
if material_instance_container:
|
||||||
|
setting = message.getMessage("settings").addRepeatedMessage("settings")
|
||||||
|
setting.name = "material_GUID"
|
||||||
|
setting.value = str(material_instance_container.getMetaDataEntry("GUID", "")).encode("utf-8")
|
||||||
## Sends all global settings to the engine.
|
## Sends all global settings to the engine.
|
||||||
#
|
#
|
||||||
# The settings are taken from the global stack. This does not include any
|
# The settings are taken from the global stack. This does not include any
|
||||||
|
|
|
@ -196,8 +196,8 @@ Cura.MachineAction
|
||||||
visible: checkupMachineAction.usbConnected
|
visible: checkupMachineAction.usbConnected
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
height: 20
|
||||||
text: checkupMachineAction.heatupHotendStarted ? catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
text: checkupMachineAction.heatupHotendStarted ? catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
||||||
//
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
if (checkupMachineAction.heatupHotendStarted)
|
if (checkupMachineAction.heatupHotendStarted)
|
||||||
|
@ -259,6 +259,7 @@ Cura.MachineAction
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: checkupMachineAction.heatupBedStarted ?catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
text: checkupMachineAction.heatupBedStarted ?catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
||||||
|
height: 20
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
if (checkupMachineAction.heatupBedStarted)
|
if (checkupMachineAction.heatupBedStarted)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue