Skip to content

Commit 337f468

Browse files
Added constraint to set position less than start point while looping.
1 parent 405d4fe commit 337f468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/sura_player_ui/audio_looper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def check_loop(self):
7373
If the position exceeds loop_end, restarts the loop after the specified delay.
7474
"""
7575
current_position = self.player.get_position()
76-
if current_position >= self.loop_end:
76+
if current_position >= self.loop_end or current_position < self.loop_start:
7777
# Stop the monitor timer to avoid multiple triggers.
7878
self.monitor_timer.stop()
7979
QTimer.singleShot(self.loop_delay, self.restart_loop)

0 commit comments

Comments
 (0)