mirror of https://github.com/ppy/osu
Fix icons not updating tooltip text correctly
This commit is contained in:
parent
4f9ac7b81e
commit
a6b153673e
|
@ -28,7 +28,7 @@ public class ModIcon : Container, IHasTooltip
|
|||
|
||||
private readonly ModType type;
|
||||
|
||||
public virtual string TooltipText { get; }
|
||||
public virtual string TooltipText => mod.IconTooltip;
|
||||
|
||||
private Mod mod;
|
||||
|
||||
|
@ -48,8 +48,6 @@ public ModIcon(Mod mod)
|
|||
|
||||
type = mod.Type;
|
||||
|
||||
TooltipText = mod.IconTooltip;
|
||||
|
||||
Size = new Vector2(size);
|
||||
|
||||
Children = new Drawable[]
|
||||
|
|
Loading…
Reference in New Issue