Merge pull request #121 from xdavidwu/songselect-fix-currentsongcache
SongSelect: compare id before clearing currentSongCache
This commit is contained in:
commit
016bfaf2c1
@ -1089,7 +1089,8 @@ class SongSelect{
|
|||||||
highlight = 0
|
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.currentSongTitle = currentSong.title
|
||||||
this.currentSongCache.clear()
|
this.currentSongCache.clear()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user