mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
After switching the Monitor Tab set Null to active output printer
CURA-5612
This commit is contained in:
parent
aadbebd457
commit
9c8ac6e9ed
2 changed files with 17 additions and 4 deletions
|
@ -9,6 +9,7 @@ Component
|
||||||
{
|
{
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
id: rectangle
|
||||||
width: maximumWidth
|
width: maximumWidth
|
||||||
height: maximumHeight
|
height: maximumHeight
|
||||||
color: UM.Theme.getColor("viewport_background")
|
color: UM.Theme.getColor("viewport_background")
|
||||||
|
@ -103,5 +104,15 @@ Component
|
||||||
visible: OutputDevice.activePrinter != null
|
visible: OutputDevice.activePrinter != null
|
||||||
anchors.fill:parent
|
anchors.fill:parent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onVisibleChanged:
|
||||||
|
{
|
||||||
|
if(rectangle != null && !rectangle.visible)
|
||||||
|
{
|
||||||
|
// After switching the Tab ensure that active printer is Null, the video stream image
|
||||||
|
// might be active
|
||||||
|
OutputDevice.setActivePrinter(null)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,9 +89,11 @@ Item
|
||||||
|
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
anchors.fill: cameraImage
|
anchors.fill: cameraImage
|
||||||
onClicked: { /* no-op */ }
|
onClicked:
|
||||||
z: 1
|
{
|
||||||
|
OutputDevice.setActivePrinter(null)
|
||||||
|
}
|
||||||
|
z: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue