From 60f33193fb78c8154a1b112d0faf76af34288df8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Sep 2020 12:52:40 -0300 Subject: cancel jump-to when selecting outside of listing --- todo.txt | 1 + ui.js | 4 ++++ 2 files changed, 5 insertions(+) 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' -- cgit 1.3.0-6-gf8a5