mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 05:56:00 +08:00
Fix qml warnings when no printer is connected
This commit is contained in:
parent
96e36c0555
commit
00c328bfe9
@ -97,7 +97,7 @@ Item
|
|||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
id: nozzleColumn
|
id: nozzleColumn
|
||||||
model: Cura.MachineManager.printerOutputDevices[0].hotendIds
|
model: printerConnected ? Cura.MachineManager.printerOutputDevices[0].hotendIds : null
|
||||||
Label { text: nozzleColumn.model[index] }
|
Label { text: nozzleColumn.model[index] }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ Item
|
|||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
id: materialColumn
|
id: materialColumn
|
||||||
model: Cura.MachineManager.printerOutputDevices[0].materialNames
|
model: printerConnected ? Cura.MachineManager.printerOutputDevices[0].materialNames : null
|
||||||
Label { text: materialColumn.model[index] }
|
Label { text: materialColumn.model[index] }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user