[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 20/20] playlists: Update copyright header
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 20/20] playlists: Update copyright header
- Date: Mon, 1 Jul 2019 22:32:08 +0000 (UTC)
commit a32b33d6875359bf2bafaf621d5977dc78d8dcb3
Author: Jean Felder <jfelder src gnome org>
Date: Wed May 15 00:59:38 2019 +0200
playlists: Update copyright header
gnomemusic/mpris.py | 7 +++++--
gnomemusic/playlists.py | 5 +----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 2800a576..1807def6 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -294,7 +294,7 @@ class MPRIS(DBusInterface):
self._playlists = Playlists.get_default()
self._playlists.connect('playlist-renamed', self._on_playlist_renamed)
- self._playlists.connect("notify::ready", self._on_playlists_loaded)
+ self._playlists.connect("notify::ready", self._on_playlists_loading)
self._player_previous_type = None
self._path_list = []
@@ -554,7 +554,10 @@ class MPRIS(DBusInterface):
self._properties_changed(
MPRIS.MEDIA_PLAYER2_PLAYLISTS_IFACE, properties, [])
- def _on_playlists_loaded(self, klass, param):
+ def _on_playlists_loading(self, klass, param):
+ if not self._playlists.props.ready:
+ return
+
self._playlists_model = self._playlists.get_playlists()
self._playlists_model.connect(
"items-changed", self._on_playlists_count_changed)
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index cf72d638..b3840bb2 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -1,7 +1,4 @@
-# Copyright (c) 2013 Arnel A. Borja <kyoushuu yahoo com>
-# Copyright (c) 2013 Sai Suman Prayaga <suman sai14 gmail com>
-# Copyright (c) 2013 Eslam Mostafa <cseslam gmail com>
-# Copyright (c) 2013 Vadim Rutkovsky <vrutkovs redhat com>
+# Copyright 2019 The GNOME Music developers
#
# GNOME Music is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]