mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:46:01 +08:00
Merge pull request #1122 from fieldOfView/fix_qml_errors
Fix qml errors
This commit is contained in:
commit
fdbbda07be
@ -424,6 +424,10 @@ UM.MainWindow
|
|||||||
visible: base.monitoringPrint
|
visible: base.monitoringPrint
|
||||||
onVisibleChanged:
|
onVisibleChanged:
|
||||||
{
|
{
|
||||||
|
if(Cura.MachineManager.printerOutputDevices.length == 0 )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(visible)
|
if(visible)
|
||||||
{
|
{
|
||||||
Cura.MachineManager.printerOutputDevices[0].startCamera()
|
Cura.MachineManager.printerOutputDevices[0].startCamera()
|
||||||
|
@ -21,7 +21,11 @@ SettingItem
|
|||||||
id: extruders_model
|
id: extruders_model
|
||||||
onModelChanged: control.color = extruders_model.getItem(control.currentIndex).color
|
onModelChanged: control.color = extruders_model.getItem(control.currentIndex).color
|
||||||
}
|
}
|
||||||
property string color: extruders_model.getItem(control.currentIndex).color
|
property string color:
|
||||||
|
{
|
||||||
|
var model_color = extruders_model.getItem(control.currentIndex).color;
|
||||||
|
return (model_color) ? model_color : "";
|
||||||
|
}
|
||||||
|
|
||||||
textRole: "name"
|
textRole: "name"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user