From f24e2998812d61bf5cb0e647c2bec1a293163d87 Mon Sep 17 00:00:00 2001 From: Vincent Lark Date: Fri, 20 Oct 2023 11:18:36 +0200 Subject: [PATCH] Avoid updating the playlist, just the paused icon class --- src/components/remotecontrol/remotecontrol.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/remotecontrol/remotecontrol.js b/src/components/remotecontrol/remotecontrol.js index f0a922c40..0c6fe4982 100644 --- a/src/components/remotecontrol/remotecontrol.js +++ b/src/components/remotecontrol/remotecontrol.js @@ -455,6 +455,11 @@ export default function () { btnPlayPauseIcon.classList.remove('play_circle_filled', 'pause_circle_filled'); btnPlayPauseIcon.classList.add(isPaused ? 'play_circle_filled' : 'pause_circle_filled'); + const playlistIndicator = context.querySelector('.playlistIndexIndicatorImage'); + if (playlistIndicator) { + playlistIndicator.classList.toggle('playlistIndexIndicatorPausedImage', isPaused); + } + buttonVisible(btnPlayPause, isActive); } @@ -599,7 +604,6 @@ export default function () { function onPlayPauseStateChanged() { updatePlayPauseState(this.paused(), true); - onPlaylistUpdate(); } function onStateChanged(event, state) {