1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Use AsOrdered() when presenting mod presets too

This commit is contained in:
Bartłomiej Dach 2023-09-28 18:42:05 +02:00
parent c0728f0b2e
commit 9a49f44db0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ namespace osu.Game.Overlays.Mods
private void updateState()
{
scrollContent.ChildrenEnumerable = saveableMods.Select(mod => new ModPresetRow(mod));
scrollContent.ChildrenEnumerable = saveableMods.AsOrdered().Select(mod => new ModPresetRow(mod));
useCurrentModsButton.Enabled.Value = checkSelectedModsDiffersFromSaved();
}

View File

@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Mods
return;
lastPreset = preset;
Content.ChildrenEnumerable = preset.Mods.Select(mod => new ModPresetRow(mod));
Content.ChildrenEnumerable = preset.Mods.AsOrdered().Select(mod => new ModPresetRow(mod));
}
protected override void PopIn() => this.FadeIn(transition_duration, Easing.OutQuint);