Rewrite conditional to be more 'balanced'

This commit is contained in:
Jamie Taylor
2021-09-10 12:25:41 +09:00
parent b01cf5c937
commit 2838a3a961

View File

@ -69,20 +69,22 @@ namespace osu.Game.Users.Drawables
if (user == null && !showGuestOnNull)
return null;
if (!openOnClick)
if (openOnClick)
{
return new ClickableAvatar(user)
{
OpenOnClick = true,
ShowUsernameTooltip = showUsernameTooltip,
RelativeSizeAxes = Axes.Both,
};
}
else
{
return new DrawableAvatar(user)
{
RelativeSizeAxes = Axes.Both,
};
}
return new ClickableAvatar(user)
{
OpenOnClick = openOnClick,
ShowUsernameTooltip = showUsernameTooltip,
RelativeSizeAxes = Axes.Both,
};
}
}
}