mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 15:17:44 +08:00
Fix migration not checking combination properly
This commit is contained in:
parent
035e5a9613
commit
f8a13b0beb
@ -1203,7 +1203,7 @@ namespace osu.Game.Database
|
|||||||
var keyBindings = migration.NewRealm.All<RealmKeyBinding>();
|
var keyBindings = migration.NewRealm.All<RealmKeyBinding>();
|
||||||
|
|
||||||
var toggleFpsBind = keyBindings.FirstOrDefault(bind => bind.ActionInt == (int)GlobalAction.ToggleFPSDisplay);
|
var toggleFpsBind = keyBindings.FirstOrDefault(bind => bind.ActionInt == (int)GlobalAction.ToggleFPSDisplay);
|
||||||
if (toggleFpsBind != null && toggleFpsBind.KeyCombination.Keys.SequenceEqual(new[] { InputKey.Control, InputKey.Shift, InputKey.F }))
|
if (toggleFpsBind != null && toggleFpsBind.KeyCombination.Keys.SequenceEqual(new[] { InputKey.Shift, InputKey.Control, InputKey.F }))
|
||||||
migration.NewRealm.Remove(toggleFpsBind);
|
migration.NewRealm.Remove(toggleFpsBind);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user