Skip to content

Commit

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

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

Expand Down

0 comments on commit 1157d90

Please sign in to comment.