fix freefall

This commit is contained in:
eduar 2026-02-03 10:30:06 +01:00
parent 3d8db482f9
commit a727557725

View File

@ -104,6 +104,13 @@ class Test_Leak(Test_Test):
if show is False:
return show
# Autostart if the flag was set by the previous step (e.g., freefall_leak)
if getattr(self.parent, 'autostart_next_step', False):
self.parent.autostart_next_step = False # Reset the flag
self.start_b.setEnabled(True)
self.start_b.click()
if "leak_2" in [s.step_type for s in self.parent.cycle_steps]:
if self.step.step_type=="leak_1":
self.test_num_l.setText("1/2")
@ -218,11 +225,6 @@ class Test_Leak(Test_Test):
self.recipe_written = False
time.sleep(1)
self.start_b.setEnabled(True)
# Autostart if the flag was set by the previous step (e.g., freefall_leak)
if getattr(self.parent, 'autostart_next_step', False):
self.parent.autostart_next_step = False # Reset the flag
self.start_b.setEnabled(True)
self.start_b.click()
return show