mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-14 23:11:51 +08:00
SongSelect: compare id before clearing currentSongCache
Add id check to currentSongCache clearing. Fixes subtitle rendering if title matches but not the same song. Titles are not guaranteed to be unique, but ids are. Title check is still here for tiles that are not songs.
This commit is contained in:
parent
e089e86240
commit
65f8e9018a
@ -1089,7 +1089,8 @@ class SongSelect{
|
||||
highlight = 0
|
||||
}
|
||||
|
||||
if(this.currentSongTitle !== currentSong.title){
|
||||
if(this.currentSongId !== currentSong.id || this.currentSongTitle !== currentSong.title){
|
||||
this.currentSongId = currentSong.id
|
||||
this.currentSongTitle = currentSong.title
|
||||
this.currentSongCache.clear()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user