1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 12:27:26 +08:00

Fixed formatting for InspectCode

This commit is contained in:
Luke Knight 2024-10-30 03:02:51 -05:00
parent b42fa23e42
commit 0f61e19857

View File

@ -495,6 +495,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
RealmKeyBinding? existingBinding = keyBinding.KeyCombination.Equals(new KeyCombination(InputKey.None))
? null
: bindings.FirstOrDefault(other => other.ID != keyBinding.ID && other.KeyCombination.Equals(keyBinding.KeyCombination) && (!restoringBinding || other.ActionInt != keyBinding.ActionInt));
if (existingBinding == null)
{
realm.Write(r => r.Find<RealmKeyBinding>(keyBinding.ID)!.KeyCombinationString = keyBinding.KeyCombination.ToString());