Commit babaa967 authored by Jean Felder's avatar Jean Felder Committed by Marinus Schraal

disclistboxwidget: Update favorites playlist

When marking a song as favorite, update the static favorites playlist.
parent 67e50b9f
Pipeline #1902 failed with stages
in 9 minutes and 15 seconds
......@@ -28,6 +28,7 @@ from gi.repository import Gdk, GObject, Gtk
from gnomemusic import log
from gnomemusic.grilo import grilo
from gnomemusic.playlists import Playlists, StaticPlaylists
import gnomemusic.utils as utils
......@@ -144,6 +145,8 @@ class DiscBox(Gtk.Box):
_playlists = Playlists.get_default()
def __repr__(self):
return '<DiscBox>'
......@@ -369,6 +372,8 @@ class DiscBox(Gtk.Box):
# signal.
favorite = song_widget.star_image.get_favorite()
grilo.set_favorite(self._model[song_widget.itr][5], favorite)
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment