mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed unneeded int convert in SeekBar
This commit is contained in:
parent
96b6490855
commit
f6c06c5da1
@ -3204,7 +3204,7 @@ class SeekBar(Gtk.Box):
|
||||
self.set_sensitive(True)
|
||||
if elapsed > duration: # fix display error
|
||||
elapsed=duration
|
||||
self._adjustment.set_upper(int(duration))
|
||||
self._adjustment.set_upper(duration)
|
||||
if self._update:
|
||||
self.scale.set_value(elapsed)
|
||||
self._elapsed.set_text(str(datetime.timedelta(seconds=int(elapsed))).lstrip("0").lstrip(":"))
|
||||
|
Loading…
Reference in New Issue
Block a user