job_status: fix issue when checking the state too early

This commit is contained in:
alfrix 2022-08-30 18:04:06 -03:00 committed by Alfredo Monclus
parent be2d5b040c
commit 2d8b5c1974

View File

@ -732,7 +732,7 @@ class JobStatusPanel(ScreenPanel):
def state_check(self):
ps = self._printer.get_stat("print_stats")
if ps['state'] == self.state:
if 'state' not in ps or ps['state'] == self.state:
return True
if ps['state'] == "printing":