Skip to content

Commit

Permalink
current_index
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar committed Oct 6, 2024
1 parent 1157d90 commit f1fb7f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/silx/gui/widgets/FrameBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ def _playStopSequence(self):

def _updateState(self):
"""Advance an interval number of frames in the browser sequence."""
if self._browser.getValue() < self._browser.getRange()[-1]:
self.setValue(self._browser.getValue() + self.getInterval())
current_index = self._browser.getValue()
if current_index < self._browser.getRange()[-1]:
self.setValue(current_index + self.getInterval())
else:
self._stopTimer()

Expand Down

0 comments on commit f1fb7f4

Please sign in to comment.