« 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.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui.js b/ui.js
index 81108aa..f9f066e 100644
--- a/ui.js
+++ b/ui.js
@@ -1000,12 +1000,10 @@ class AppElement extends FocusElement {
       items = [
         // A label that just shows some brief information about the item.
         {label:
-          `(${item.name ? `"${item.name}"` : 'Unnamed'}` +
-          (isGroup(item) ? (
-            ' -' +
-            ` ${numTracks} track${numTracks === 1 ? '' : 's'}` +
-            `, ${durationString}`)
-          : '') + ')',
+          `(${item.name ? `"${item.name}"` : 'Unnamed'} - ` +
+          (isGroup(item) ? ` ${numTracks} track${numTracks === 1 ? '' : 's'}, ` : '') +
+          durationString +
+          ')',
           keyboardIdentifier: item.name
         },