job_status: fix issue when checking the state too early
This commit is contained in:
1 parent
be2d5b040c
commit
2d8b5c1974
1 file changed
+1
-1
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user