« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 38a365d..bd73bdc 100644
--- a/ui.js
+++ b/ui.js
@@ -58,6 +58,10 @@ const {
   }
 } = require('tui-lib')
 
+const {
+  originalSymbol
+} = require('./socket')
+
 /* text editor features disabled because theyre very much incomplete and havent
  * gotten much use from me or anyone afaik!
 const TuiTextEditor = require('tui-text-editor')
@@ -1148,6 +1152,16 @@ class AppElement extends FocusElement {
       }
 
       const rootGroup = getItemPath(item)[0]
+
+      // This is the hack mentioned in the todo!!!!
+      if (
+        this.config.showPartyControls &&
+        rootGroup.isPartySources &&
+        item[originalSymbol]
+      ) {
+        item = item[originalSymbol]
+      }
+
       const hasNotesFile = !!getCorrespondingFileForItem(item, '.txt')
 
       if (listing.grouplike.isTheQueue && isTrack(item)) {