From e1877f2c2eadc923d37a24803964d93a3b4714de Mon Sep 17 00:00:00 2001 From: alfrix Date: Fri, 4 Feb 2022 09:33:57 -0300 Subject: [PATCH] Job_status: call state_check just before trying to close the panel This shouldn't be needed but it's a reasonable safeguard --- panels/job_status.py | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/job_status.py b/panels/job_status.py index d9bc099e..d0b863f6 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -310,6 +310,7 @@ class JobStatusPanel(ScreenPanel): def close_panel(self, widget=None): logging.debug("Closing job_status panel") self.remove_close_timeout() + self.state_check() if self.state not in ["printing", "paused"]: self._screen.printer_ready() return False