Skip to content

Commit 0d6fc7f

Browse files
authored
Fixed run_start_time with start image pause loop (#197)
Also fixed run_start_time not accounting for the delay in parsing images
1 parent d8caf9e commit 0d6fc7f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/AutoSplit.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ def __auto_splitter(self):
517517
self.gui_changes_on_reset(True)
518518
return
519519

520+
# Initialize a few attributes
521+
self.run_start_time = time()
522+
self.split_image_number = 0
523+
self.waiting_for_split_delay = False
524+
self.split_below_threshold = False
525+
split_time = 0
526+
number_of_split_images = len(self.split_images_and_loop_number)
527+
dummy_splits_array = [image_loop[0].check_flag(DUMMY_FLAG) for image_loop in self.split_images_and_loop_number]
528+
520529
# Construct a list of images + loop count tuples.
521530
self.split_images_and_loop_number = [
522531
item for flattenlist
@@ -545,15 +554,6 @@ def __auto_splitter(self):
545554
if self.start_image:
546555
self.__pause_loop(self.start_image.get_pause_time(self), "None (Paused).")
547556

548-
# Initialize a few attributes
549-
self.split_image_number = 0
550-
self.waiting_for_split_delay = False
551-
self.split_below_threshold = False
552-
split_time = 0
553-
number_of_split_images = len(self.split_images_and_loop_number)
554-
dummy_splits_array = [image_loop[0].check_flag(DUMMY_FLAG) for image_loop in self.split_images_and_loop_number]
555-
self.run_start_time = time()
556-
557557
# First loop: stays in this loop until all of the split images have been split
558558
while self.split_image_number < number_of_split_images:
559559

0 commit comments

Comments
 (0)