From b482c2661281b9d331a37915cd76a4ac7c4dfcbe Mon Sep 17 00:00:00 2001 From: Crash Cringle <30600688+CrashCringle12@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:29:39 -0500 Subject: [PATCH] Give these sorts sections so it's clear where they start and end --- src/SongUtil.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SongUtil.cpp b/src/SongUtil.cpp index 466a8de90d..a57d8957e8 100644 --- a/src/SongUtil.cpp +++ b/src/SongUtil.cpp @@ -642,6 +642,9 @@ void SongUtil::SortSongPointerArrayByNumPlays( std::vector &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];