shorten _screen.printer to _printer
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user