curds: Make it easier to send the playlist-changed notification

We're going to use this to notify that the current playlist has been
changed

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-04-14 17:36:37 -04:00
parent 6c0d269b2d
commit 8a04d63c52
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ class Playlist():
if track is not None and track not in self:
self.list.append(track)
notify.notify("add-track", self, track, self.list.index(track))
self.changed()
def changed(self):
notify.notify("playlist-changed", self)
def next(self):