From c2a89f91684df916aaf8f66eab33280ad99b6b1b Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 11 Jun 2019 16:09:08 -0300 Subject: If necessary, unselect queue after clearing This avoids bugs coming from trying to interact with an empty form. --- ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui.js b/ui.js index 6f78b16..834269e 100644 --- a/ui.js +++ b/ui.js @@ -721,6 +721,10 @@ class AppElement extends FocusElement { this.queueListingElement.buildItems() this.queueListingElement.selectNone() this.updateQueueLengthLabel() + + if (this.queueListingElement.isSelected && !this.queueListingElement.selectable) { + this.root.select(this.tabber) + } } seekAhead(seconds) { -- cgit 1.3.0-6-gf8a5