Use extruder icon without number if there is only 1

This commit is contained in:
alfrix
2022-03-30 22:58:37 -03:00
parent b70524cd28
commit 53c7afd7a5
7 changed files with 73 additions and 21 deletions

View File

@@ -285,7 +285,10 @@ class TemperaturePanel(ScreenPanel):
for d in self.devices:
if d.startswith('extruder'):
i += 1
image = "extruder-%s" % i
if self._printer.extrudercount > 1:
image = "extruder-%s" % i
else:
image = "extruder"
class_name = "graph_label_%s" % device
type = "extruder"
elif device == "heater_bed":