« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 0c2be5f..189aa85 100644
--- a/ui.js
+++ b/ui.js
@@ -160,7 +160,12 @@ class AppElement extends FocusElement {
   }
 
   async downloadGrouplikeItem(item) {
-    // TODO: Check if it's an item or a group
+    if (isGroup(item)) {
+      // TODO: Download all children (recursively), show a confirmation prompt
+      // if there are a lot of items (remember to flatten).
+      return
+    }
+
     const arg = item.downloaderArg
     this.recordStore.getRecord(item).downloading = true
     try {