Fix a couple of code style issues in SelectionBox

This commit is contained in:
Dean Herbert 2023-07-26 14:04:16 +09:00
parent 39c2bb240b
commit 7fd6bb9d5f

View File

@ -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)