Job_status: call state_check just before trying to close the panel

This shouldn't be needed but it's a reasonable safeguard
This commit is contained in:
alfrix committed 2022-02-04 09:34:05 -03:00
1 parent d5ab606509
commit e1877f2c2e
1 file changed
+1
+1
View File
@@ -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