Commit 65f8e901 authored by xdavidwu's avatar xdavidwu

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.
parent e089e862
...@@ -1089,7 +1089,8 @@ class SongSelect{ ...@@ -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()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment