mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Fix qml error about stopCamera when no printer is connected
This commit is contained in:
parent
4c89e8253f
commit
35a3bdc924
1 changed files with 4 additions and 0 deletions
|
@ -424,6 +424,10 @@ UM.MainWindow
|
|||
visible: base.monitoringPrint
|
||||
onVisibleChanged:
|
||||
{
|
||||
if(Cura.MachineManager.printerOutputDevices.length == 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(visible)
|
||||
{
|
||||
Cura.MachineManager.printerOutputDevices[0].startCamera()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue