Make ExtruderSelector invisible if there is no choice in extruders

It doesn't yet update well if you keep the panel open while switching machines.

Contributes to issue CURA-340.
This commit is contained in:
Ghostkeeper 2016-06-09 15:59:57 +02:00
parent e793ce1a2c
commit beb263025b
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -36,6 +36,7 @@ Item {
{ {
id: extruders_model id: extruders_model
} }
visible: extruders_model.rowCount() > 1
textRole: "name" textRole: "name"
width: items.width width: items.width
height: UM.Theme.getSize("section").height height: UM.Theme.getSize("section").height