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:
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