mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Reorder OrderBy
for legibility
This commit is contained in:
parent
68364081f2
commit
7961dba1d3
@ -73,10 +73,11 @@ namespace osu.Game.Input.Bindings
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
KeyBindings = store.Query(ruleset?.ID, variant)
|
KeyBindings = store.Query(ruleset?.ID, variant)
|
||||||
|
.OrderBy(b => defaults.FindIndex(d => (int)d.Action == b.IntAction))
|
||||||
// this ordering is important to ensure that we read entries from the database in the order
|
// this ordering is important to ensure that we read entries from the database in the order
|
||||||
// enforced by DefaultKeyBindings. allow for song select to handle actions that may otherwise
|
// enforced by DefaultKeyBindings. allow for song select to handle actions that may otherwise
|
||||||
// have been eaten by the music controller due to query order.
|
// have been eaten by the music controller due to query order.
|
||||||
.OrderBy(b => defaults.FindIndex(d => (int)d.Action == b.IntAction)).ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user