Added camera view back to cluster screen

CL-893
This commit is contained in:
Jaime van Kessel 2018-08-23 20:34:20 +02:00
parent 6bfa2fed96
commit fc83520ad9
5 changed files with 51 additions and 13 deletions

View file

@ -89,17 +89,18 @@ Component
PrinterVideoStream
{
visible: OutputDevice.activePrinter != null
visible: OutputDevice.activeCamera != null
anchors.fill: parent
camera: OutputDevice.activeCamera
}
onVisibleChanged:
{
if (!monitorFrame.visible)
if (monitorFrame != null && !monitorFrame.visible)
{
// After switching the Tab ensure that active printer is Null, the video stream image
// might be active
OutputDevice.setActivePrinter(null)
OutputDevice.setActiveCamera(null)
}
}
}