Give these sorts sections so it's clear where they start and end

This commit is contained in:
Crash Cringle
2025-03-03 23:36:06 -08:00
committed by teejusb
parent 6201e1ab94
commit b482c26612
+5 -1
View File
@@ -642,6 +642,9 @@ void SongUtil::SortSongPointerArrayByNumPlays( std::vector<Song*> &vpSongsInOut,
g_mapSongSortVal.clear(); g_mapSongSortVal.clear();
} }
static LocalizedString SECTION_RECENTLY_PLAYED("SongSort", "Recently Played");
static LocalizedString SECTION_POPULAR_SONGS("SongSort", "Most Played");
RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so ) RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so )
{ {
if( pSong == nullptr ) if( pSong == nullptr )
@@ -710,10 +713,11 @@ RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so
case SORT_POPULARITY: case SORT_POPULARITY:
case SORT_POPULARITY_P1: case SORT_POPULARITY_P1:
case SORT_POPULARITY_P2: case SORT_POPULARITY_P2:
return SECTION_POPULAR_SONGS.GetValue();
case SORT_RECENT: case SORT_RECENT:
case SORT_RECENT_P1: case SORT_RECENT_P1:
case SORT_RECENT_P2: case SORT_RECENT_P2:
return RString(); return SECTION_RECENTLY_PLAYED.GetValue();
case SORT_TOP_GRADES_P1: case SORT_TOP_GRADES_P1:
{ {
int iCounts[NUM_Grade]; int iCounts[NUM_Grade];