The frontends use the new core actor, while the core actor uses the backend. This is a step towards supporting multiple backends, where the core actor will coordinate the backends.
10 lines
254 B
Python
10 lines
254 B
Python
def populate_playlist(func):
|
|
def wrapper(self):
|
|
for track in self.tracks:
|
|
self.core.current_playlist.add(track)
|
|
return func(self)
|
|
|
|
wrapper.__name__ = func.__name__
|
|
wrapper.__doc__ = func.__doc__
|
|
return wrapper
|