« get me outta code hell

Fix the "processing metadata" text getting stuck - 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>2019-05-12 16:29:19 -0300
committerFlorrie <towerofnix@gmail.com>2019-05-12 16:29:19 -0300
commit84d407ca5300b7ab4dfc62822970e2365347d8f1 (patch)
treede04e8f0b1793c7bed22e6eb49a249cb923200ea
parent276b6bc65c7e0067c3bbcda575b4599459386f21 (diff)
Fix the "processing metadata" text getting stuck
...when you choose "process metadata (new entries)" on a track which has
already had its metadata processed.
-rw-r--r--ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index d838a1d..b16a5ec 100644
--- a/ui.js
+++ b/ui.js
@@ -1029,9 +1029,9 @@ class AppElement extends FocusElement {
 
     if (isGroup(item)) {
       await Promise.all(item.items.map(x => this.processMetadata(x, reprocess, false)))
-    } else {
+    } else process: {
       if (!reprocess && this.getMetadataFor(item)) {
-        return
+        break process
       }
 
       await this.throttleMetadata(async () => {