[gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 5/6] player: Emit the correct signal when a song position has changed



commit 477fe97ff61bd8fbdce584507d407504c17a24e3
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Apr 24 00:32:40 2019 +0200

    player: Emit the correct signal when a song position has changed
    
    When a song position in the playlist has changed, it means that the
    whole playlist has changed. Thus, the "playlist-changed" signal needs
    to be sent instead of "prev-next-invalidated".

 gnomemusic/player.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index c1b551ae..61f03f76 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -716,7 +716,7 @@ class Player(GObject.GObject):
         """
         current_index = self._playlist.change_position(prev_pos, new_pos)
         if current_index >= 0:
-            self.emit('prev-next-invalidated')
+            self.emit('playlist-changed')
         return current_index
 
     @log


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]