From 47cd1be53f5940383f3bd25a3e498832ebc29d9f Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 4 Jul 2018 23:51:48 -0300 Subject: Don't download tracks that are already being downloaded --- ui.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 148d2a6..ab85bf7 100644 --- a/ui.js +++ b/ui.js @@ -384,6 +384,11 @@ class AppElement extends FocusElement { return } + // Don't start downloading an item if we're already downloading it! + if (this.recordStore.getRecord(item).downloading) { + return + } + const arg = item.downloaderArg this.recordStore.getRecord(item).downloading = true try { -- cgit 1.3.0-6-gf8a5