mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
Simplify function
This commit is contained in:
parent
8747ab3a6e
commit
a511073ea2
1 changed files with 1 additions and 3 deletions
|
@ -434,9 +434,7 @@ class TimelineFeature (FeatureBase):
|
|||
data = self.timeline.sentinel.data
|
||||
if not data:
|
||||
return True
|
||||
count = 0
|
||||
for i in range (pos):
|
||||
count += data[i]
|
||||
count = sum (data[:pos + 1])
|
||||
|
||||
row = self.log_model[count]
|
||||
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)
|
||||
|
|
Loading…
Reference in a new issue