[gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 6/8] player: Remove prev-next-invalidated emission in set_playlist
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/player-remove-prev-next-invalidated: 6/8] player: Remove prev-next-invalidated emission in set_playlist
- Date: Wed, 24 Apr 2019 11:40:31 +0000 (UTC)
commit 686c9bc2c37ab9a661aca5beaf894fe8e9398c73
Author: Jean Felder <jfelder src gnome org>
Date: Wed Apr 24 00:26:42 2019 +0200
player: Remove prev-next-invalidated emission in set_playlist
If the playback is already in PLAYING mode, a song-changed signal will
also be emitted by the play method. This signal emission is enough for
the PlayerToolbar to update its view and for MPRIS server to emit the
required PropertiesChanged.
gnomemusic/player.py | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 54e259be..66ab54f3 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -701,9 +701,6 @@ class Player(GObject.GObject):
playlist_changed = self._playlist.set_playlist(
playlist_type, playlist_id, model, iter_)
- if self.props.state == Playback.PLAYING:
- self.emit('prev-next-invalidated')
-
if playlist_changed:
self.emit('playlist-changed')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]