File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ bool MLRSongCell::init(const SongData& songData, const bool isEven) {
2727 if (songData.type == SongType::Favorited) songNameLabel->setFntFile (" goldFont.fnt" );
2828 else if (songData.type == SongType::Blacklisted) songNameLabel->setColor ({128 , 128 , 128 });
2929
30- if (const int songID = geode::utils::numFromString<int >(desiredFileName).unwrapOr (-1 ); songID != -1 ) {
31- if (SongInfoObject* songInfoObject = MusicDownloadManager::sharedState ()->getSongInfoObject (songID)) songNameLabel->setString (Utils::getFormattedNGMLSongName (songInfoObject).c_str ());
30+ MusicDownloadManager* mdm = MusicDownloadManager::sharedState ();
31+ if (const int songID = geode::utils::numFromString<int >(desiredFileName).unwrapOr (-1 ); songID > 0 && !mdm->m_resourceSongUnorderedSet .contains (songID) && mdm->isSongDownloaded (songID) && Utils::toNormalizedString (songData.actualFilePath ) == Utils::toNormalizedString (mdm->pathForSong (songID))) {
32+ if (SongInfoObject* songInfoObject = mdm->getSongInfoObject (songID)) songNameLabel->setString (Utils::getFormattedNGMLSongName (songInfoObject).c_str ());
3233 }
3334 songNameLabel->limitLabelWidth (356 .f * .8f , .75f , .001f );
3435
You can’t perform that action at this time.
0 commit comments