mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Only update camera source if the camera view is showing
This commit is contained in:
parent
530d582c6c
commit
e4cfbc8fdf
1 changed files with 12 additions and 1 deletions
|
@ -402,7 +402,18 @@ UM.MainWindow
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
anchors.horizontalCenterOffset: - UM.Theme.getSize("sidebar").width / 2
|
||||||
visible: base.monitoringPrint
|
visible: base.monitoringPrint
|
||||||
source: Cura.MachineManager.printerOutputDevices.length > 0 && Cura.MachineManager.printerOutputDevices[0].cameraImage ? Cura.MachineManager.printerOutputDevices[0].cameraImage : ""
|
source:
|
||||||
|
{
|
||||||
|
if(!base.monitoringPrint)
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if(Cura.MachineManager.printerOutputDevices.length > 0 && Cura.MachineManager.printerOutputDevices[0].cameraImage)
|
||||||
|
{
|
||||||
|
return Cura.MachineManager.printerOutputDevices[0].cameraImage;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.MessageStack
|
UM.MessageStack
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue