musikr: re-add playlist deletion
This commit is contained in:
parent
7e45812411
commit
93da4a69a9
1 changed files with 6 additions and 1 deletions
|
@ -100,7 +100,12 @@ internal data class LibraryImpl(
|
|||
}
|
||||
|
||||
override suspend fun deletePlaylist(playlist: Playlist): MutableLibrary {
|
||||
return this
|
||||
val playlistImpl =
|
||||
requireNotNull(playlistUidMap[playlist.uid]) {
|
||||
"Playlist to delete is not in this library"
|
||||
}
|
||||
playlistImpl.core.prePlaylist.handle.delete()
|
||||
return copy(playlists = playlists - playlistImpl)
|
||||
}
|
||||
|
||||
private class NewPlaylistCore(
|
||||
|
|
Loading…
Reference in a new issue