Added unique names on playlist rename.

This commit is contained in:
The Wobbler 2025-01-27 18:32:41 +01:00
parent b95081e840
commit a8560add65
3 changed files with 12 additions and 5 deletions

View file

@ -124,6 +124,8 @@ class Playlist:
wbz.close()
def delete(self):
self.app.utils.unique_names.pop(self.title) # remove from unique names so a new playlist can have the old name
path = f"{self.app.settings.library_path}/playlists/{self.title.replace(" ", "_")}.wbz.m3u"
if os.path.exists(path):