mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Use FirstOrDefault in TooltipContent
This commit is contained in:
parent
3d402d9e78
commit
ef6faf04be
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user