Skip to content

Commit

Permalink
add a preference to disable playlists loading as song groups
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 17, 2018
1 parent 36b9c25 commit 619b75d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static const ThemeMetric<bool> USE_PREFERRED_SORT_COLOR ( "SongManager", "UsePr
static const ThemeMetric<int> EXTRA_STAGE2_DIFFICULTY_MAX ( "SongManager", "ExtraStage2DifficultyMax" );

static Preference<RString> g_sDisabledSongs( "DisabledSongs", "" );
static Preference<bool> PlaylistsAreSongGroups("PlaylistsAreSongGroups", true);

RString SONG_GROUP_COLOR_NAME( size_t i ) { return ssprintf( "SongGroupColor%i", (int) i+1 ); }

Expand Down Expand Up @@ -375,6 +376,9 @@ void SongManager::SetFlagsForProfile(Profile* prof) {
}

void SongManager::MakeSongGroupsFromPlaylists(map<string, Playlist>& playlists) {
if (!PlaylistsAreSongGroups)
return;

for(auto& plName : playlistGroups)
groupderps.erase(plName);
playlistGroups.clear();
Expand Down

0 comments on commit 619b75d

Please sign in to comment.