« get me outta code hell

Fix queue not auto-selecting auto-played track - 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:
authorFlorrie <towerofnix@gmail.com>2018-12-28 16:24:38 -0400
committerFlorrie <towerofnix@gmail.com>2018-12-28 16:24:38 -0400
commit36328925615b6a01231257f1a736b53ca26139be (patch)
tree37285031d9d461799b412dbf58c59a3bda0291f2 /ui.js
parent5ee9b350590626ffdef759409dd38ad6f0ab599b (diff)
Fix queue not auto-selecting auto-played track
Previously the cursor would only follow the selected track if it was
selected by shift-up/down; now it works if it's automatically played
(i.e. by the previous song finishing).
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 20e59e8..cf39bf5 100644
--- a/ui.js
+++ b/ui.js
@@ -753,7 +753,6 @@ class AppElement extends FocusElement {
     // (true), or was stopped by a different track being started (false).
 
     if (playingThisTrack) {
-      this.playingTrack = null
       if (!this.playNextTrack(item)) {
         this.clearPlayingTrack()
       }