job_status: clear_file after error

This commit is contained in:
alfrix committed 2022-12-11 09:20:06 -03:00
1 parent 74338a7f3e
commit 1375c823c9
1 file changed
+3
+3
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()