shorten _screen.printer to _printer

This commit is contained in:
alfrix
2022-12-08 00:26:54 -03:00
parent f31ae7a829
commit 70d7564a78
11 changed files with 52 additions and 52 deletions

View File

@@ -19,7 +19,7 @@ class ExtrudePanel(ScreenPanel):
def __init__(self, screen, title):
super().__init__(screen, title)
self.current_extruder = self._printer.get_stat("toolhead", "extruder")
macros = self._screen.printer.get_gcode_macros()
macros = self._printer.get_gcode_macros()
self.load_filament = any("LOAD_FILAMENT" in macro.upper() for macro in macros)
self.unload_filament = any("UNLOAD_FILAMENT" in macro.upper() for macro in macros)