job_status: Add missing variable declaration for gettext

This commit is contained in:
Jordan Ruthe 2021-03-14 23:42:12 -04:00
parent 47e233928e
commit 7743f2aa63

View File

@ -444,7 +444,8 @@ class JobStatusPanel(ScreenPanel):
ps = self._printer.get_stat("print_stats")
if ps['state'] == self.state:
return True
_ = self.lang.gettext
if ps['state'] == "printing" and self.state != "printing" and self.state != "cancelling":
self.set_state("printing")
elif ps['state'] == "complete" and self.state != "complete":