Give these sorts sections so it's clear where they start and end
This commit is contained in:
+5
-1
@@ -642,6 +642,9 @@ void SongUtil::SortSongPointerArrayByNumPlays( std::vector<Song*> &vpSongsInOut,
|
||||
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 )
|
||||
{
|
||||
if( pSong == nullptr )
|
||||
@@ -710,10 +713,11 @@ RString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so
|
||||
case SORT_POPULARITY:
|
||||
case SORT_POPULARITY_P1:
|
||||
case SORT_POPULARITY_P2:
|
||||
return SECTION_POPULAR_SONGS.GetValue();
|
||||
case SORT_RECENT:
|
||||
case SORT_RECENT_P1:
|
||||
case SORT_RECENT_P2:
|
||||
return RString();
|
||||
return SECTION_RECENTLY_PLAYED.GetValue();
|
||||
case SORT_TOP_GRADES_P1:
|
||||
{
|
||||
int iCounts[NUM_Grade];
|
||||
|
||||
Reference in New Issue
Block a user