Added unique names on playlist rename.
This commit is contained in:
parent
b95081e840
commit
a8560add65
3 changed files with 12 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue