Skip to content

Commit

Permalink
Fix folder playlists not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Oct 25, 2024
1 parent 021fe65 commit 67675d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Next
- Fix folder playlists not closing

## 0.19.0 - 2024 Oct 8
- Drop support for Windows 7 and 8
- Drop support for macOS 10.13 and 10.14
Expand Down
9 changes: 7 additions & 2 deletions src/components/SidebarItems.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@
handleKey(e: KeyboardEvent): void
}
let shown_folders = writable(view_options.shownPlaylistFolders)
const shown_folders = writable(view_options.shownPlaylistFolders)
function show_folder(id: string) {
view_options.shownPlaylistFolders.push(id)
shown_folders.set(view_options.shownPlaylistFolders)
save_view_options(view_options)
}
function hide_folder(id: string) {
view_options.shownPlaylistFolders.filter((folder_id) => folder_id !== id)
view_options.shownPlaylistFolders = view_options.shownPlaylistFolders.filter(
(folder_id) => folder_id !== id,
)
shown_folders.set(view_options.shownPlaylistFolders)
save_view_options(view_options)
}
</script>
Expand Down

0 comments on commit 67675d8

Please sign in to comment.