From d04e99a8ecb8ad4e6adfc1e0631644e21cc0778e Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 28 Aug 2022 12:42:54 -0400 Subject: [PATCH] simplyprint: automated file reset bugfix Signed-off-by: Eric Callahan --- moonraker/components/simplyprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonraker/components/simplyprint.py b/moonraker/components/simplyprint.py index 700e5ec..c6bffd4 100644 --- a/moonraker/components/simplyprint.py +++ b/moonraker/components/simplyprint.py @@ -1489,6 +1489,7 @@ class PrintHandler: self.pending_file = fpath.name if ret.get("print_started", False): state = "started" + self.last_started = self.pending_file self.pending_file = "" elif not start and await self._check_can_print(): state = "ready" @@ -1524,7 +1525,7 @@ class PrintHandler: data["state"] = "error" data["message"] = "Failed to start print" else: - self._last_started = pending + self.last_started = pending self.simplyprint.send_sp("file_progress", data) async def _check_can_print(self) -> bool: