diff --git a/panels/base_panel.py b/panels/base_panel.py index b4894172..f0dea68c 100644 --- a/panels/base_panel.py +++ b/panels/base_panel.py @@ -228,7 +228,7 @@ class BasePanel(ScreenPanel): name = f"{name[:1].upper()}: " self.labels[device].set_label(f"{name}{int(temp)}°") - if (self.current_extruder is not False and 'toolhead' in data and 'extruder' in data['toolhead'] + if (self.current_extruder and 'toolhead' in data and 'extruder' in data['toolhead'] and data["toolhead"]["extruder"] != self.current_extruder): self.control['temp_box'].remove(self.labels[f"{self.current_extruder}_box"]) self.current_extruder = data["toolhead"]["extruder"]