From 6ee52f13e846ce25dd1403e4cab137ba179fe227 Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 1 Feb 2024 12:14:57 -0300 Subject: [PATCH] base_panel: fix issue with panel not loading during shutdown status --- panels/base_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]