rettelser

This commit is contained in:
2026-04-19 17:19:59 +02:00
parent c966d38f11
commit fb7622549c
7 changed files with 81 additions and 33 deletions

View File

@@ -178,13 +178,8 @@ class PlaylistManagerDialog(QDialog):
)
if reply == QMessageBox.StandardButton.Yes:
try:
from local.local_db import get_db
with get_db() as conn:
conn.execute(
"INSERT INTO deleted_playlists (name) "
"SELECT name FROM playlists WHERE id=?", (pl["id"],)
)
conn.execute("DELETE FROM playlists WHERE id=?", (pl["id"],))
from local.local_db import delete_playlist
delete_playlist(pl["id"])
self._load_saved_playlists()
except Exception as e:
self._load_status.setText(f"Fejl: {e}")