mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
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:
parent
717b9574b9
commit
204bf4d7dd
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ Item {
|
||||||
model: Cura.ExtrudersModel
|
model: Cura.ExtrudersModel
|
||||||
{
|
{
|
||||||
id: extruders_model
|
id: extruders_model
|
||||||
|
onRowsInserted: extruderSelector.visible = extruders_model.rowCount() > 1
|
||||||
|
onModelReset: extruderSelector.visible = extruders_model.rowCount() > 1
|
||||||
}
|
}
|
||||||
visible: extruders_model.rowCount() > 1
|
visible: extruders_model.rowCount() > 1
|
||||||
textRole: "name"
|
textRole: "name"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue