mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 00:52:56 +08:00
Fix code quality
This commit is contained in:
parent
7207209404
commit
83abb845b6
@ -74,7 +74,13 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
TooltipText = tooltipText ?? (url != text ? url : string.Empty),
|
TooltipText = tooltipText ?? (url != text ? url : string.Empty),
|
||||||
Action = action ?? (() => game.HandleLink(url, linkType, linkArgument)),
|
Action = () =>
|
||||||
|
{
|
||||||
|
if (action != null)
|
||||||
|
action();
|
||||||
|
else
|
||||||
|
game.HandleLink(url, linkType, linkArgument);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return drawables;
|
return drawables;
|
||||||
|
Loading…
Reference in New Issue
Block a user