Job_status: Fix not changing state if a print is issued during cancelling

This commit is contained in:
alfrix 2022-01-21 23:47:59 -03:00 committed by Alfredo Monclus
parent de0b6ea435
commit 8e8e23de0f

View File

@ -417,6 +417,8 @@ class JobStatusPanel(ScreenPanel):
self.fan = int(round(data['fan']['speed'], 2)*100)
self.labels['fan'].set_text("%3d%%" % self.fan)
if ps['state'] != self.state:
self.state_check()
if self.state in ["cancelling", "cancelled", "complete", "error"]:
return