[gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 7/8] player: Emit the correct signal when a song position has changed
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 7/8] player: Emit the correct signal when a song position has changed
- Date: Wed, 24 Apr 2019 11:40:36 +0000 (UTC)
commit bb43b787d34f8082845a9125f4128fa8ba89cda6
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 66ab54f3..28b584d9 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -715,7 +715,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]