« 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--todo.txt1
-rw-r--r--ui.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/todo.txt b/todo.txt
index 0be297c..0a478b7 100644
--- a/todo.txt
+++ b/todo.txt
@@ -526,6 +526,7 @@ TODO: In that regard, also change the queue length label (just above the time
 
 TODO: Deselecting a grouplike listing (e.g. by clicking elsewhere) should hide
       its "jump to" element.
+      (Done!)
 
 TODO: A "before selected item" option for in the queue menu!
       (Done!)
diff --git a/ui.js b/ui.js
index 642a02a..5a801de 100644
--- a/ui.js
+++ b/ui.js
@@ -2070,6 +2070,10 @@ class GrouplikeListingElement extends Form {
     this.fixLayout()
   }
 
+  unselected() {
+    this.hideJumpElement(true)
+  }
+
   get tabberLabel() {
     if (this.grouplike) {
       return this.grouplike.name || 'Unnamed group'