From fb067b5cdcb7c1c30ac12eedc7b671edadb53ac5 Mon Sep 17 00:00:00 2001 From: Christian Meffert Date: Tue, 31 Dec 2024 07:04:52 +0000 Subject: [PATCH] fix: Now Playing does not stop play progress updates when pausing --- web-src/src/pages/PageNowPlaying.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web-src/src/pages/PageNowPlaying.vue b/web-src/src/pages/PageNowPlaying.vue index a2309d104f..b03293d48d 100644 --- a/web-src/src/pages/PageNowPlaying.vue +++ b/web-src/src/pages/PageNowPlaying.vue @@ -145,15 +145,15 @@ export default { }, watch: { - playerStore() { + 'playerStore.state'(newState) { if (this.interval_id > 0) { window.clearTimeout(this.interval_id) this.interval_id = 0 } - if (this.playerStore.state === 'play') { + if (newState === 'play') { this.interval_id = window.setInterval(this.tick, INTERVAL) } - } + }, }, created() {