From 952d46da2443c46ecb66f187e910f032ed4dac79 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Sat, 14 Nov 2020 10:14:36 -0500 Subject: [PATCH] Highlight all heaters by default on preheat panel --- panels/preheat.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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))