[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Add shortcuts support

Kasper (May 28, 2025, 11:34 AM +0200) 52b5f9c3 76ce7246

+6 -8
+6 -8
src/components/TrackList.svelte
··· 56 56 57 57 defineCustomElement() 58 58 59 - // let tracklist_element: HTMLDivElement 60 - 61 59 export let params: { playlist_id: string } 62 60 $: $current_playlist_id = params.playlist_id 63 61 const item_height = 24 ··· 116 114 }) 117 115 $: selection.update_all_items(tracks_page.itemIds) 118 116 119 - // const track_action_unlisten = ipc_listen('selected_tracks_action', (_, action) => { 120 - // if (tracklist_element.contains(document.activeElement)) { 121 - // handle_action(action) 122 - // } 123 - // }) 124 - // onDestroy(track_action_unlisten) 117 + const track_action_unlisten = ipc_listen('selected_tracks_action', (_, action) => { 118 + if (grid.contains(document.activeElement)) { 119 + handle_action(action) 120 + } 121 + }) 122 + onDestroy(track_action_unlisten) 125 123 126 124 ipc_renderer.on('Group Album Tracks', (_, checked) => { 127 125 group_album_tracks.set(checked)