1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +08:00

Use FirstOrDefault in TooltipContent

This commit is contained in:
Henry Lin 2021-08-22 10:22:18 +08:00
parent 3d402d9e78
commit ef6faf04be

View File

@ -311,6 +311,6 @@ namespace osu.Game.Overlays.Mods
public ITooltip GetCustomTooltip() => new ModButtonTooltip();
public object TooltipContent => SelectedMod ?? Mods[0];
public object TooltipContent => SelectedMod ?? Mods.FirstOrDefault();
}
}