diff options
-rw-r--r-- | ui.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui.js b/ui.js index 7056506..6f78b16 100644 --- a/ui.js +++ b/ui.js @@ -719,7 +719,7 @@ class AppElement extends FocusElement { this.queueGrouplike.items = this.queueGrouplike.items .filter(item => item === this.playingTrack) this.queueListingElement.buildItems() - this.queueListingElement.pathElement.showItem(null) + this.queueListingElement.selectNone() this.updateQueueLengthLabel() } @@ -1411,6 +1411,12 @@ class GrouplikeListingElement extends Form { if (this.root.select) this.hideJumpElement() } + selectNone() { + this.pathElement.showItem(null) + this.form.curIndex = 0 + this.form.scrollItems = 0 + } + buildItems(resetIndex = false) { if (!this.grouplike) { throw new Error('Attempted to call buildItems before a grouplike was loaded') |