[gnome-music/wip/mschraal/gapless-v3: 28/29] playertoolbar: Reset progress time on update
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gapless-v3: 28/29] playertoolbar: Reset progress time on update
- Date: Mon, 17 Jun 2019 23:01:41 +0000 (UTC)
commit 40dd6443edea20db20ed1556795daf789e6b2a21
Author: Marinus Schraal <mschraal gnome org>
Date: Sat May 4 16:41:00 2019 +0200
playertoolbar: Reset progress time on update
There is ever so slightly a delay between updating of the total duration
label and the progress time label, because they are triggered by different
signals.
Hard reset the progress time label to zero when updating the PlayerToolbar.
gnomemusic/widgets/playertoolbar.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gnomemusic/widgets/playertoolbar.py b/gnomemusic/widgets/playertoolbar.py
index de11eb93..27617f5f 100644
--- a/gnomemusic/widgets/playertoolbar.py
+++ b/gnomemusic/widgets/playertoolbar.py
@@ -171,6 +171,7 @@ class PlayerToolbar(Gtk.ActionBar):
current_song = player.props.current_song
self._duration_label.set_label(
utils.seconds_to_string(current_song.get_duration()))
+ self._progress_time_label.props.label = "0:00"
self._play_button.set_sensitive(True)
self._sync_prev_next()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]