Implemented deletion of playlists.

This commit is contained in:
The Wobbler 2025-01-28 18:23:43 +01:00
parent 5ecc70e637
commit 96a9985099
3 changed files with 34 additions and 9 deletions

View file

@ -35,10 +35,7 @@ class TabTitle(QLineEdit):
def on_edit(self):
self.clearFocus()
self.playlist_view.playlist.delete()
self.playlist_view.playlist.rename(self.text())
name = self.app.utils.unique_name(self.text(), ignore=self.playlist_view.playlist.title)
self.setText(name)
self.playlist_view.playlist.title = name
self.setText(self.playlist_view.playlist.title)