Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/components/SetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ export default function SetList({
};

const handleShuffleToggle = () => {
// Warn the user if shuffling will discard existing transitions.
if (engine.playlist.getTransitions().length > 0) {
const confirmed = window.confirm(
(!isShuffled ? 'Shuffling' : 'Restoring original order') +
' will discard all transitions between tracks. Continue?',
);
if (!confirmed) return;
}

// Capture current playback position before reordering changes the timeline.
const currentEntry = engine.getCurrentEntry();
const offsetWithinSong = currentEntry
Expand Down
Loading