mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 21:05:56 +08:00
Fix qml error about stopCamera when no printer is connected
This commit is contained in:
parent
4c89e8253f
commit
35a3bdc924
@ -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…
x
Reference in New Issue
Block a user