mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix qml warning when no printer is connected
This commit is contained in:
parent
2153ee8651
commit
a291131aca
1 changed files with 4 additions and 0 deletions
|
|
@ -161,6 +161,10 @@ Rectangle
|
||||||
visible: showProgress;
|
visible: showProgress;
|
||||||
indeterminate:
|
indeterminate:
|
||||||
{
|
{
|
||||||
|
if(!printerConnected)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
switch(Cura.MachineManager.printerOutputDevices[0].jobState)
|
switch(Cura.MachineManager.printerOutputDevices[0].jobState)
|
||||||
{
|
{
|
||||||
case "pausing":
|
case "pausing":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue