From c2893e7709d51c232b6a6c868bd2fa452d6f5932 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 4 Feb 2020 21:53:48 -0400 Subject: immediately show results of acting on queue player Specifically, this makes toggling loop show its effect right away. --- ui.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 9dba6d6..81108aa 100644 --- a/ui.js +++ b/ui.js @@ -947,12 +947,13 @@ class AppElement extends FocusElement { } actOnQueuePlayers(fn) { - if (this.queuePlayersToActOn.length) { - for (const queuePlayer of this.queuePlayersToActOn) { - fn(queuePlayer) + const actOn = this.queuePlayersToActOn.length ? this.queuePlayersToActOn : [this.SQP] + for (const queuePlayer of actOn) { + fn(queuePlayer) + const PIE = this.getPlaybackInfoElementForQueuePlayer(queuePlayer) + if (PIE) { + PIE.updateProgress() } - } else { - fn(this.SQP) } } -- cgit 1.3.0-6-gf8a5