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 @@ private void useCurrentMods()
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 @@ public void SetContent(ModPreset preset)
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);