« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 0604873..3a7f70d 100644
--- a/ui.js
+++ b/ui.js
@@ -720,7 +720,8 @@ class AppElement extends FocusElement {
       this.recordStore.getRecord(item).playing = true
       this.playingTrack = item
       this.playbackInfoElement.updateTrack(item)
-      if (!this.queueListingElement.isSelected) {
+
+      if (this.queueListingElement.currentItem === oldTrack) {
         this.queueListingElement.selectAndShow(item)
       }