mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Remove redundant conditional ternary expression
This commit is contained in:
parent
cf92d6b1b0
commit
1bfb87fcdd
@ -28,8 +28,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
public LeaderboardModSelector()
|
||||
{
|
||||
AutoSizeAxes = Axes.Y;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Both;
|
||||
InternalChild = modsContainer = new FillFlowContainer<ModButton>
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
@ -151,10 +150,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
updateState();
|
||||
}
|
||||
|
||||
private void updateState()
|
||||
{
|
||||
Highlighted.Value = (IsHovered || Selected.Value) ? true : false;
|
||||
}
|
||||
private void updateState() => Highlighted.Value = IsHovered || Selected.Value;
|
||||
|
||||
protected override void OnHighlightedChange(ValueChangedEvent<bool> highlighted)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user