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

Switch to == true

This commit is contained in:
Bartłomiej Dach 2023-06-27 22:02:15 +02:00
parent ad3a470eaf
commit 54280f06be
No known key found for this signature in database

View File

@ -171,13 +171,13 @@ namespace osu.Game.Screens.Edit.Compose.Components
switch (e.Key)
{
case Key.G:
return reverseButton?.TriggerClick() ?? false;
return reverseButton?.TriggerClick() == true;
case Key.Comma:
return rotateCounterClockwiseButton?.TriggerClick() ?? false;
return rotateCounterClockwiseButton?.TriggerClick() == true;
case Key.Period:
return rotateClockwiseButton?.TriggerClick() ?? false;
return rotateClockwiseButton?.TriggerClick() == true;
}
return base.OnKeyDown(e);