« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 67f1bf4..0ae5266 100644
--- a/ui.js
+++ b/ui.js
@@ -692,6 +692,12 @@ class AppElement extends FocusElement {
         return
       }
 
+      // Don't unqueue the currently-playing track - this usually causes more
+      // trouble than it's worth.
+      if (item === this.playingTrack) {
+        return
+      }
+
       const items = this.queueGrouplike.items
       if (items.includes(item)) {
         items.splice(items.indexOf(item), 1)