diff --git a/panels/preheat.py b/panels/preheat.py index c60c4d18..857483c3 100644 --- a/panels/preheat.py +++ b/panels/preheat.py @@ -64,6 +64,14 @@ class PreheatPanel(ScreenPanel): self._screen.add_subscription(panel_name) + def activate(self): + for x in self._printer.get_tools(): + if x not in self.active_heaters: + self.select_heater(None, x) + + if "heater_bed" not in self.active_heaters: + self.select_heater(None, "heater_bed") + def select_heater(self, widget, heater): if heater in self.active_heaters: self.active_heaters.pop(self.active_heaters.index(heater))