job_status: fixup progress initialization if restarted during print

This commit is contained in:
alfrix authored and Alfredo Monclus committed 2023-08-18 11:48:37 -03:00
1 parent e3cbc1ea8c
commit d9a6d0caa6
1 file changed
+2
+2
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))