[gnome-music/wip/mschraal/core] coremodel: Correct artist playlist type
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core] coremodel: Correct artist playlist type
- Date: Thu, 20 Jun 2019 14:54:23 +0000 (UTC)
commit a5dbea5bf0e8fd9d0fe41eb618b316c50a860459
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Jun 20 16:51:16 2019 +0200
coremodel: Correct artist playlist type
gnomemusic/coremodel.py | 2 +-
gnomemusic/widgets/artistalbumswidget.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index 32bb8b40..db50e401 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -161,7 +161,7 @@ class CoreModel(GObject.GObject):
song.props.state = SongWidget.State.PLAYING
self.emit("playlist-loaded")
- elif playlist_type == PlayerPlaylist.Type.PLAYLIST:
+ elif playlist_type == PlayerPlaylist.Type.ARTIST:
self._playlist_model.remove_all()
for artist_album in model:
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 5864a634..803238d6 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -109,7 +109,7 @@ class ArtistAlbumsWidget(Gtk.Box):
signal_id = self._player._app._coremodel.connect(
"playlist-loaded", _on_playlist_loaded)
self._player._app._coremodel.set_playlist_model(
- PlayerPlaylist.Type.PLAYLIST, self._album, song_widget._media,
+ PlayerPlaylist.Type.ARTIST, self._album, song_widget._media,
self._model)
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]