From bd1870aff19e8e5f23131316f6833496d0f3827e Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 28 Jan 2019 12:17:24 -0400 Subject: Don't unqueue currently-playing track --- ui.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 67f1bf4..0ae5266 100644 --- a/ui.js +++ b/ui.js @@ -692,6 +692,12 @@ class AppElement extends FocusElement { return } + // Don't unqueue the currently-playing track - this usually causes more + // trouble than it's worth. + if (item === this.playingTrack) { + return + } + const items = this.queueGrouplike.items if (items.includes(item)) { items.splice(items.indexOf(item), 1) -- cgit 1.3.0-6-gf8a5