In `WPPlaylistView::ended()`, at the end of a playlist, set the index to `0` and call `->setCurrent()` instead of `->loadCurrent()` so that the first track is properly highlighted.
Fixes #28428. git-svn-id: https://develop.svn.wordpress.org/trunk@28649 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d4b336ded2
commit
58690d7b97
|
@ -145,8 +145,7 @@
|
||||||
this.next();
|
this.next();
|
||||||
} else {
|
} else {
|
||||||
this.index = 0;
|
this.index = 0;
|
||||||
this.current = this.tracks.at( this.index );
|
this.setCurrent();
|
||||||
this.loadCurrent();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue