job_status: clear_file after error

This commit is contained in:
alfrix 2022-12-10 18:59:02 -03:00
parent 74338a7f3e
commit 1375c823c9

View File

@ -422,6 +422,9 @@ class JobStatusPanel(ScreenPanel):
def restart(self, widget):
if self.filename != "none":
if self.state == "error":
script = {"script": "SDCARD_RESET_FILE"}
self._screen._send_action(None, "printer.gcode.script", script)
self._screen._ws.klippy.print_start(self.filename)
self.new_print()