File tree 1 file changed +11
-4
lines changed 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -582,16 +582,23 @@ def __auto_splitter(self):
582
582
if split_delay > 0 and not self .waiting_for_split_delay :
583
583
split_time = round (time () + split_delay * 1000 )
584
584
self .waiting_for_split_delay = True
585
- self .next_image_button .setEnabled (False )
586
- self .previous_image_button .setEnabled (False )
587
- self .undo_split_button .setEnabled (False )
588
- self .skip_split_button .setEnabled (False )
585
+ buttons_to_disable = [
586
+ self .next_image_button ,
587
+ self .previous_image_button ,
588
+ self .undo_split_button ,
589
+ self .skip_split_button ,
590
+ ]
591
+ for button in buttons_to_disable :
592
+ button .setEnabled (False )
589
593
self .current_image_file_label .clear ()
590
594
591
595
# check for reset while delayed and display a counter of the remaining split delay time
592
596
if self .__pause_loop (split_delay , "Delayed Split:" ):
593
597
return
594
598
599
+ for button in buttons_to_disable :
600
+ button .setEnabled (True )
601
+
595
602
self .waiting_for_split_delay = False
596
603
597
604
# if {p} flag hit pause key, otherwise hit split hotkey
You can’t perform that action at this time.
0 commit comments