mirror of
https://github.com/ppy/osu
synced 2025-01-17 11:30:52 +00:00
Fix a couple of code style issues in SelectionBox
This commit is contained in:
parent
39c2bb240b
commit
7fd6bb9d5f
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
}
|
||||
}
|
||||
|
||||
private IBindable<bool> canRotate = new BindableBool();
|
||||
private readonly IBindable<bool> canRotate = new BindableBool();
|
||||
|
||||
private bool canScaleX;
|
||||
|
||||
@ -152,8 +152,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
if (RotationHandler != null)
|
||||
canRotate.BindTo(RotationHandler.CanRotate);
|
||||
|
||||
canRotate.BindValueChanged(_ => recreate());
|
||||
recreate();
|
||||
canRotate.BindValueChanged(_ => recreate(), true);
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user