mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 19:35:53 +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
|
||||
{
|
||||
id: nozzleColumn
|
||||
model: Cura.MachineManager.printerOutputDevices[0].hotendIds
|
||||
model: printerConnected ? Cura.MachineManager.printerOutputDevices[0].hotendIds : null
|
||||
Label { text: nozzleColumn.model[index] }
|
||||
}
|
||||
}
|
||||
@ -106,7 +106,7 @@ Item
|
||||
Repeater
|
||||
{
|
||||
id: materialColumn
|
||||
model: Cura.MachineManager.printerOutputDevices[0].materialNames
|
||||
model: printerConnected ? Cura.MachineManager.printerOutputDevices[0].materialNames : null
|
||||
Label { text: materialColumn.model[index] }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user