ExtruderIcon will now display that it's disabled correctly

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-16 16:04:11 +01:00
parent d661a8e626
commit 7f99ed1af3
4 changed files with 24 additions and 6 deletions

View file

@ -24,8 +24,6 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
## Human-readable name of the extruder.
NameRole = Qt.UserRole + 2
## Is the extruder enabled?
EnabledRole = Qt.UserRole + 9
## Colour of the material loaded in the extruder.
ColorRole = Qt.UserRole + 3
@ -50,6 +48,9 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
MaterialBrandRole = Qt.UserRole + 9
ColorNameRole = Qt.UserRole + 10
## Is the extruder enabled?
EnabledRole = Qt.UserRole + 11
## List of colours to display if there is no material or the material has no known
# colour.
defaultColors = ["#ffc924", "#86ec21", "#22eeee", "#245bff", "#9124ff", "#ff24c8"]