Merge pull request #1832 from chme/fix/now-playing-pause

fix: Now Playing does not stop play progress updates when pausing
This commit is contained in:
Alain Nussbaumer
2024-12-31 10:17:53 +01:00
committed by GitHub

View File

@@ -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() {