mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -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
|
||||
{
|
||||
id: rectangle
|
||||
width: maximumWidth
|
||||
height: maximumHeight
|
||||
color: UM.Theme.getColor("viewport_background")
|
||||
|
@ -103,5 +104,15 @@ Component
|
|||
visible: OutputDevice.activePrinter != null
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue