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



commit f12820bedb58c4ffa0ce2dc01cffde30d4704f99
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 311f74b4..f78e5265 100644
--- a/gnomemusic/widgets/playertoolbar.py
+++ b/gnomemusic/widgets/playertoolbar.py
@@ -180,6 +180,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]