job_status: fixup progress initialization if restarted during print

This commit is contained in:
alfrix
2023-08-12 21:58:48 -03:00
committed by Alfredo Monclus
parent e3cbc1ea8c
commit d9a6d0caa6

View File

@@ -674,6 +674,8 @@ class Panel(ScreenPanel):
elif filament_time is not None and filament_time > 1:
estimated = (filament_time + file_time) / 2
estimated = file_time
if estimated < 1:
return
self.labels["est_time"].set_label(self.format_time(estimated))
self.labels["time_left"].set_label(self.format_eta(estimated, print_duration))