Skip to content

🎧 Your Personal Streaming Service

fix(ui): prevent autoplay when clearing the play queue (#5430)

Deluan Quintãod5ba61adf818
diff --git a/ui/src/audioplayer/Player.jsx b/ui/src/audioplayer/Player.jsx
index eba3b82d7..5599b9e1d 100644
--- a/ui/src/audioplayer/Player.jsx
+++ b/ui/src/audioplayer/Player.jsx
@@ -210,6 +210,7 @@ const Player = () => {
audioLists: playerState.queue.map((item) => item),
playIndex: playerState.playIndex,
autoPlay:
+ playerState.queue.length > 0 &&
playerState.autoPlay !== false &&
(playerState.clear || playerState.playIndex === 0),
clearPriorAudioLists: playerState.clear,