[gnome-music/wip/mschraal/gapless-v3: 1/2] playertoolbar: Reset progress time on update



commit 42ac0eef34c8e27a279713cff5d5a2a762447fe4
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]