Merge branch 'develop'

This commit is contained in:
张开科 2024-11-15 16:33:35 +08:00
commit 629416d1f2
2 changed files with 1 additions and 6 deletions

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']:

View File

@ -782,6 +782,7 @@ class KlipperScreen(Gtk.Window):
return
self.files.refresh_files()
self.show_panel("main_menu", remove_all=True, items=self._config.get_menu_items("__main"))
self._ws.klippy.gcode_script("UPDATE_DELAYED_GCODE ID=_CHECK_POWER_LOSS_RECOVERY DURATION=0.1")
def state_startup(self):
self.printer_initializing(_("Klipper is attempting to start"))