Fix icons not updating tooltip text correctly

This commit is contained in:
Dean Herbert 2020-03-23 14:58:02 +09:00
parent 4f9ac7b81e
commit a6b153673e
1 changed files with 1 additions and 3 deletions

View File

@ -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[]