修复打印页面双头打印时激活第二个喷头 第一个喷头温度消失的问题

This commit is contained in:
张开科 2024-11-14 17:02:08 +08:00
parent c10976cf12
commit 5e2b2ed2b2

View File

@ -508,12 +508,6 @@ class Panel(ScreenPanel):
self.labels['lcdmessage'].hide()
if 'toolhead' in data:
if 'extruder' in data['toolhead'] and data['toolhead']['extruder'] != self.current_extruder:
self.labels['temp_grid'].remove_column(0)
self.labels['temp_grid'].insert_column(0)
self.current_extruder = data["toolhead"]["extruder"]
self.labels['temp_grid'].attach(self.buttons['extruder'][self.current_extruder], 0, 0, 1, 1)
self._screen.show_all()
if "max_accel" in data["toolhead"]:
self.labels['max_accel'].set_label(f"{data['toolhead']['max_accel']:.0f} {self.mms2}")
if 'extruder' in data and 'pressure_advance' in data['extruder']: