« 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:09:21 -0300
commit3bdaa6dd24e258dbecbc9efe11b7a583246c7b79 (patch)
tree0d7892a7e9cfb3c74809f2528f6098c8db4e2bb6
parenta8bebdac05d6857eff5c87ab63e44edddcbb148a (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)},