diff options
author | Florrie <towerofnix@gmail.com> | 2019-06-11 16:09:08 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-06-11 16:09:08 -0300 |
commit | c2a89f91684df916aaf8f66eab33280ad99b6b1b (patch) | |
tree | d4fa52558ea3558b3bb5d852995455fc362e71c6 | |
parent | 9bd6e057b392f60cf31ae258ec46ac50b052697d (diff) |
If necessary, unselect queue after clearing
This avoids bugs coming from trying to interact with an empty form.
-rw-r--r-- | ui.js | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |