Update visibility of extruder dropdown on change

It currently only works when switching to a dual-extrusion printer, since the model is not updated when switching away to a non-dual-extrusion printer...

Contributes to issue CURA-340.
This commit is contained in:
Ghostkeeper 2016-06-10 16:32:19 +02:00
parent 717b9574b9
commit 204bf4d7dd
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -35,6 +35,8 @@ Item {
model: Cura.ExtrudersModel
{
id: extruders_model
onRowsInserted: extruderSelector.visible = extruders_model.rowCount() > 1
onModelReset: extruderSelector.visible = extruders_model.rowCount() > 1
}
visible: extruders_model.rowCount() > 1
textRole: "name"