mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Condition simplification
This commit is contained in:
parent
e287dae64b
commit
30d9b21b86
@ -71,7 +71,7 @@ namespace osu.Game.Overlays.Comments
|
||||
isVoted.BindValueChanged(voted => background.Colour = voted.NewValue ? AccentColour : OsuColour.Gray(0.05f), true);
|
||||
votesCount.BindValueChanged(count => votesCounter.Text = $"+{count.NewValue}", true);
|
||||
|
||||
api.LocalUser.BindValueChanged(user => disabled = user.NewValue?.Id == comment.UserId ? true : false, true);
|
||||
api.LocalUser.BindValueChanged(user => disabled = user.NewValue?.Id == comment.UserId, true);
|
||||
}
|
||||
|
||||
private void onAction()
|
||||
|
Loading…
Reference in New Issue
Block a user