Improved hotcue icons

This commit is contained in:
patben8 committed 2026-09-25 17:16:16 +02:00
1 parent c1f121ae1d
commit c6aaded26d
5 files changed
+33 -18

No files matched your search

+5 -1
View File
@@ -432,8 +432,12 @@ export function PrepStrip({
// A library row's play button bumps `playRequest`: load (if needed) + play.
// If the requested track is already loaded and ready, start immediately;
// otherwise flag it and the analysis effect starts playback once ready.
// Only a CHANGE is a request: the deck unmounts behind the library picker,
// and remounting with a non-zero count must not start playback.
const seenPlayRequestRef = useRef(playRequest)
useEffect(() => {
if (playRequest === 0) return
if (playRequest === seenPlayRequestRef.current) return
seenPlayRequestRef.current = playRequest
pendingPlayRef.current = true
const eng = playbackRef.current
if (loadedIdRef.current === trackId && eng?.ready) {