diff --git a/panels/temperature.py b/panels/temperature.py index b7da2a11..f8bf6598 100644 --- a/panels/temperature.py +++ b/panels/temperature.py @@ -21,21 +21,26 @@ class TemperaturePanel(ScreenPanel): def initialize(self, panel_name): self.preheat_options = self._screen._config.get_preheat_options() logging.debug("Preheat options: %s" % self.preheat_options) - self.show_preheat = True self.grid = self._gtk.HomogeneousGrid() self.grid.attach(self.create_left_panel(), 0, 0, 1, 1) - self.grid.attach(self.create_right_panel(), 1, 0, 1, 1) - self.content.add(self.grid) - self.layout.show_all() for x in self._printer.get_tools(): if x not in self.active_heaters: self.select_heater(None, x) - for h in self._printer.get_heaters(): - if h.startswith("temperature_sensor "): - continue - if h not in self.active_heaters: - self.select_heater(None, h) + # When printing start in temp_delta mode and only select tools + logging.info(self._printer.get_state()) + if self._printer.get_state() not in ["printing", "paused"]: + self.show_preheat = True + for h in self._printer.get_heaters(): + if h.startswith("temperature_sensor "): + continue + if h not in self.active_heaters: + self.select_heater(None, h) + else: + self.show_preheat = False + self.grid.attach(self.create_right_panel(), 1, 0, 1, 1) + self.content.add(self.grid) + self.layout.show_all() def create_right_panel(self): _ = self.lang.gettext