Fixed errors after last song in queue is finished, Styling Changes, list item will now show the play button on hover

This commit is contained in:
booploops 2021-12-17 02:29:12 -08:00
parent 74d9bceb90
commit b1bbaab969
3 changed files with 39 additions and 10 deletions

View file

@ -86,6 +86,9 @@
select(e) {
if (e.shiftKey) {
if (this.index != -1) {
if(app.selectedMediaItems.length == 0) {
app.select_selectMediaItem(this.item.attributes.playParams.id ?? this.item.id, this.item.attributes.playParams.kind ?? this.item.type, this.index, this.guid)
}
let allMediaItems = document.querySelectorAll(".cd-mediaitem-list-item[data-index]")
let startIndex = Math.min(...app.selectedMediaItems.map(item => item.index))
let endIndex = Math.max(...app.selectedMediaItems.map(item => item.index))