1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 18:32:55 +08:00

Condition simplification

This commit is contained in:
Andrei Zavatski 2019-10-29 21:57:20 +03:00
parent e287dae64b
commit 30d9b21b86

View File

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