1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Fix carousel reoder on initial enter

This commit is contained in:
Dan Balasescu 2024-03-28 23:56:46 +09:00
parent 9fd6449fd8
commit 6e746a0fa0
No known key found for this signature in database

View File

@ -218,7 +218,13 @@ namespace osu.Game.Screens.Select
maximumStars.ValueChanged += _ => updateCriteria();
ruleset.BindValueChanged(_ => updateCriteria());
mods.BindValueChanged(_ => updateCriteria());
mods.BindValueChanged(_ =>
{
// Mods are updated once by the mod select overlay when song select is entered, regardless of if there are any mods.
// Updating the criteria here so early triggers a re-ordering of panels on song select, via... some mechanism.
// Todo: Investigate/fix the above and remove this schedule.
Scheduler.AddOnce(updateCriteria);
});
groupMode.BindValueChanged(_ => updateCriteria());
sortMode.BindValueChanged(_ => updateCriteria());