diff --git a/wobuzz/player/playlist.py b/wobuzz/player/playlist.py index 110adad..4f548ea 100644 --- a/wobuzz/player/playlist.py +++ b/wobuzz/player/playlist.py @@ -176,6 +176,10 @@ class Playlist: self.app.utils.unique_names.remove(self.title) self.app.library.playlists.remove(self) + if self.app.player.current_playlist == self: # stop if this is the current playlist + self.app.player.stop() + self.app.player.current_playlist = None + def append_track(self, track): for dock_id in self.views: view = self.views[dock_id]