Prevent QML warnings when there is no connected printer

CURA-1036
This commit is contained in:
fieldOfView 2016-06-24 13:39:24 +02:00
parent beff54e5b1
commit 00ad7b23ff
2 changed files with 21 additions and 16 deletions

View file

@ -569,7 +569,7 @@ UM.MainWindow
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
visible: base.monitoringPrint
source: Cura.MachineManager.printerOutputDevices[0].cameraImage
source: Cura.MachineManager.printerOutputDevices.length > 0 ? Cura.MachineManager.printerOutputDevices[0].cameraImage : ""
}
}
}