sets the selected track as first one in group when swapping sorts on freeplay

This commit is contained in:
Cameron Taylor 2024-04-29 03:49:28 -04:00
parent a88c8e9812
commit 81f8338c99

View file

@ -456,6 +456,14 @@ class FreeplayState extends MusicBeatSubState
default:
generateSongList({filterType: REGEXP, filterData: str}, true);
}
// We want to land on the first song of the group, rather than random song when changing letter sorts
// that is, only if there's more than one song in the group!
if (grpCapsules.members.length > 0)
{
curSelected = 1;
changeSelection();
}
};
exitMovers.set([fp, txtCompletion, fnfHighscoreSpr],