« get me outta code hell

don't show Reveal option if track has no parent - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-09 17:09:21 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-09 17:10:59 -0300
commit20f8491545c3b598cc6bba893bc79db5cf6bcb1f (patch)
treed78230914d5e4466ef014c65bbeb829e242a7583
parentca096c7a64b5098ac1548d0996e871f63934b7ae (diff)
don't show Reveal option if track has no parent
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 0499ff6..de0b214 100644
--- a/ui.js
+++ b/ui.js
@@ -1024,7 +1024,7 @@ class AppElement extends FocusElement {
     let items;
     if (listing.grouplike.isTheQueue && isTrack(item)) {
       items = [
-        this.tabberPane.visible && {label: 'Reveal', action: () => this.reveal(item)},
+        item[parentSymbol] && this.tabberPane.visible && {label: 'Reveal', action: () => this.reveal(item)},
         {divider: true},
         canControlQueue && {label: 'Play later', action: () => this.playLater(item)},
         canControlQueue && {label: 'Play sooner', action: () => this.playSooner(item)},